Experimental: this API is experimental and might be changed or removed in the future.

Subsystem

class in UnityEngine.Experimental


Implements interfaces:ISubsystem

Switch to Manual

Description

A Subsystem is initialized from a SubsystemDescriptor for a given Subsystem (Example, Input, Environment, 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 preserve performance). The base type for Subsystem 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 中初始化第二个子系统将返回对现有子系统的引用,因为目前只允许单个子系统提供商使用一个子系统。

Public Functions

Destroy销毁子系统的此实例。
Start启动子系统的一个实例。
Stop停止子系统的一个实例。