docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RemoveWorldFromPlayerLoop

    RemoveWorldFromPlayerLoop(World, ref PlayerLoopSystem)

    Remove all of this World's systems from the specified player loop.

    Declaration
    public static void RemoveWorldFromPlayerLoop(World world, ref PlayerLoopSystem playerLoop)
    Parameters
    Type Name Description
    World world

    All systems in the provided player loop owned by this World will be removed from the player loop.

    PlayerLoopSystem playerLoop

    Existing player loop to modify (e.g. PlayerLoop.GetCurrentPlayerLoop())

    Remarks

    Only the systems from this World will be removed; other player loop modifications (including systems added by other Worlds) will not be affected.

    This function does not change the currently active player loop. If this behavior is desired, it's necessary to call PlayerLoop.SetPlayerLoop(playerLoop) after the systems have been removed.

    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)