文档

Unity Engine

Download Unity

Unity Engine

ConstructSystem

Construct a System from a Type. Uses the same list in TypeManager.GetSystems.
阅读时间1 分钟最后更新于 20 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

ConstructSystem(Type)

Construct a System from a Type. Uses the same list in TypeManager.GetSystems.
public static ComponentSystemBase ConstructSystem(Type systemType)

Parameters

systemType

The system type.

Returns

Type

Description

ComponentSystemBaseReturns the new system.

ConstructSystem<T>()

Creates an instance of a system of type T.
public static T ConstructSystem<T>() where T : ComponentSystemBase

Returns

Type

Description

TReturns the newly created system instance

ConstructSystem<T>(Type)

Creates an instance of a system of System.Type.
public static T ConstructSystem<T>(Type systemType) where T : ComponentSystemBase

Parameters

systemType

System type to create

Returns

Type

Description

TReturns the newly created system instance