docs.unity3d.com
Search Results for

    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
    bool

    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.

    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)