文档

Unity Engine

Download Unity

Unity Engine

DefaultWorldInitialization

Utilities to help initialize the default ECS World.
阅读时间1 分钟最后更新于 14 天前

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.