docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor World

    World(string, WorldFlags)

    Construct a new World instance

    Declaration
    public World(string name, WorldFlags flags = WorldFlags.Simulation)
    Parameters
    Type Name Description
    string name

    The name to assign to the new World

    WorldFlags flags

    The flags to assign to the new World

    World(string, WorldFlags, AllocatorHandle)

    Construct a new World instance

    Declaration
    public World(string name, WorldFlags flags, AllocatorManager.AllocatorHandle backingAllocatorHandle)
    Parameters
    Type Name Description
    string name

    The name to assign to the new World

    WorldFlags flags

    The flags to assign to the new World

    AllocatorManager.AllocatorHandle backingAllocatorHandle

    The allocator to use for any of the world's internal memory allocations

    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)