Method AddSystemsToRootLevelSystemGroups
AddSystemsToRootLevelSystemGroups(World, IEnumerable<Type>)
Adds the collection of systems to the world by injecting them into the root level system groups (InitializationSystemGroup, SimulationSystemGroup and PresentationSystemGroup). Prefer the version that takes SystemTypeIndex's as an argument to avoid unnecessary reflection.
Declaration
public static void AddSystemsToRootLevelSystemGroups(World world, IEnumerable<Type> systemTypes)
Parameters
Type | Name | Description |
---|---|---|
World | world | The World in which the root-level system groups should be created. |
IEnumerable<Type> | systemTypes | The system types to create and add. |
AddSystemsToRootLevelSystemGroups(World, IReadOnlyList<Type>)
Adds the collection of systems to the world by injecting them into the root level system groups (InitializationSystemGroup, SimulationSystemGroup and PresentationSystemGroup). Prefer the version that takes SystemTypeIndex's as an argument to avoid unnecessary reflection.
Declaration
public static void AddSystemsToRootLevelSystemGroups(World world, IReadOnlyList<Type> systemTypes)
Parameters
Type | Name | Description |
---|---|---|
World | world | The World in which the root-level system groups should be created. |
IReadOnlyList<Type> | systemTypes | The system types to create and add. |
AddSystemsToRootLevelSystemGroups(World, params Type[])
Adds the collection of systems to the world by injecting them into the root level system groups (InitializationSystemGroup, SimulationSystemGroup and PresentationSystemGroup). Prefer the version that takes SystemTypeIndex's as an argument to avoid unnecessary reflection.
Declaration
public static void AddSystemsToRootLevelSystemGroups(World world, params Type[] systemTypes)
Parameters
Type | Name | Description |
---|---|---|
World | world | The World in which the root-level system groups should be created. |
Type[] | systemTypes | The system types to create and add. |
AddSystemsToRootLevelSystemGroups(World, NativeList<SystemTypeIndex>)
Adds the collection of systems to the world by injecting them into the root level system groups (InitializationSystemGroup, SimulationSystemGroup and PresentationSystemGroup). This version avoids unnecessary reflection.
Declaration
public static void AddSystemsToRootLevelSystemGroups(World world, NativeList<SystemTypeIndex> systemTypes)
Parameters
Type | Name | Description |
---|---|---|
World | world | The World in which the root-level system groups should be created. |
NativeList<SystemTypeIndex> | systemTypes | The system types to create and add. |