docs.unity.cn
    Show / Hide Table of Contents

    Class DefaultWorldInitialization

    Utilities to help initialize the default ECS World.

    Inheritance
    Object
    DefaultWorldInitialization
    Namespace: Unity.Entities
    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, 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.

    GetAllSystems(WorldSystemFilterFlags, Boolean)

    Calculates a list of all systems filtered with WorldSystemFilterFlags, [DisableAutoCreation] etc. Prefer GetAllSystemTypeIndices where possible to avoid extra reflection.

    GetAllSystemTypeIndices(WorldSystemFilterFlags, Boolean)

    Calculates a list of all systems filtered with WorldSystemFilterFlags, [DisableAutoCreation] etc. Prefer this over GetAllSystems if possible, to avoid extra reflection usage.

    Initialize(String, Boolean)

    Initializes the default world or runs ICustomBootstrap if one is available.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023