Documentation

Unity Engine


Unity Engine


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

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