Class DefaultWorldInitialization
Utilities to help initialize the default ECS World.
Namespace: Unity.Entities
Assembly: Unity.Entities.dll
Syntax
public static class DefaultWorldInitialization
Methods
Name | Description |
---|---|
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. |
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. |
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. |
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. |
DefaultLazyEditModeInitialize() | Can be called when in edit mode in the editor to initialize a the default world. |
GetAllSystemTypeIndices(WorldSystemFilterFlags, bool) | Calculates a list of all systems filtered with WorldSystemFilterFlags, [DisableAutoCreation] etc. Prefer this over GetAllSystems if possible, to avoid extra reflection usage. |
GetAllSystems(WorldSystemFilterFlags, bool) | Calculates a list of all systems filtered with WorldSystemFilterFlags, [DisableAutoCreation] etc. Prefer GetAllSystemTypeIndices where possible to avoid extra reflection. |
Initialize(string, bool) | Initializes the default world or runs ICustomBootstrap if one is available. |