docs.unity3d.com
    Show / Hide Table of Contents

    Method IsWorldInPlayerLoop

    IsWorldInPlayerLoop(World, PlayerLoopSystem)

    Search the provided player loop for any systems added by this World.

    Declaration
    public static bool IsWorldInPlayerLoop(World world, PlayerLoopSystem playerLoop)
    Parameters
    Type Name Description
    World world

    The function will search the provided PlayerLoopSystem for systems owned by this World.

    PlayerLoopSystem playerLoop

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

    Returns
    Type Description
    Boolean

    True if any of this World's systems are found in the provided player loop; otherwise, false.

    Remarks

    Note that systems are not added to the player loop directly; they are wrapped by a DummyDelegate object that calls the system's Update() method. Any systems added to the loop using other wrapper mechanisms will not be detected by this function.

    IsWorldInPlayerLoop(World)

    Declaration
    public static bool IsWorldInPlayerLoop(World world)
    Parameters
    Type Name Description
    World world
    Returns
    Type Description
    Boolean
    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