Version: 2021.3

Subsystem

class in UnityEngine


实现接口:ISubsystem

切换到手册

描述

A Subsystem is initialized from a SubsystemDescriptorWithProvider for a given Subsystem (Example, Input, Display, etc.) and provides an interface to interact with that given Subsystem until it is Destroyed. After a Subsystem is created it can be Started or Stopped to turn on and off functionality (and improve performance). The base type for subsystems only exposes this functionality; this class is designed to be a base class for derived classes that expose more functionality specific to a given Subsystem.

注意:从同一 SubsystemDescriptor 中初始化第二个子系统将返回对现有子系统的引用,因为目前只允许单个子系统提供商使用一个子系统。

This subsystem base-class is deprecated. If you are creating a new subsystem type, derive from SubsystemWithProvider instead.

变量

running子系统是否在运行。

公共函数

Destroy销毁子系统的此实例。
Start启动子系统的一个实例。
Stop停止子系统的一个实例。
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961