Documentation

Unity Engine

Unity Engine

DefaultWorldInitialization

Utilities to help initialize the default ECS World.
Read time 1 minuteLast updated 7 hours ago

Definition

  • Type: Class
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static class DefaultWorldInitialization

Static Methods

Method

Description

AddSystemsToRootLevelSystemGroupsAdds 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.
GetAllSystemsCalculates a list of all systems filtered with WorldSystemFilterFlags, [DisableAutoCreation] etc. Prefer GetAllSystemTypeIndices where possible to avoid extra reflection.
GetAllSystemTypeIndicesCalculates a list of all systems filtered with WorldSystemFilterFlags, [DisableAutoCreation] etc. Prefer this over GetAllSystems if possible, to avoid extra reflection usage.
InitializeInitializes the default world or runs ICustomBootstrap if one is available.