docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Initialize

    Initialize(string, bool)

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

    Declaration
    public static World Initialize(string defaultWorldName, bool editorWorld = false)
    Parameters
    Type Name Description
    string defaultWorldName

    The name of the world that will be created. Unless there is a custom bootstrap.

    bool editorWorld

    Editor worlds by default only include systems with [WorldSystemFilter(WorldSystemFilterFlags.Editor)]. If editorWorld is true, ICustomBootstrap will not be used.

    Returns
    Type Description
    World

    The initialized World object.

    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)