docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DefaultWorldInitialization

    Utilities to help initialize the default ECS World.

    Inheritance
    object
    DefaultWorldInitialization
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)