ConstructSystem
Construct a System from a Type. Uses the same list in TypeManager.GetSystems.
Read time 1 minuteLast updated 3 days ago
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
The system type.
Returns
Type | Description |
|---|---|
| ComponentSystemBase | Returns 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 |
|---|---|
| T | Returns 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
System type to create
Returns
Type | Description |
|---|---|
| T | Returns the newly created system instance |