docs.unity3d.com
    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023