docs.unity3d.com
    Show / Hide Table of Contents

    Method AppendSystemToPlayerLoopList

    AppendSystemToPlayerLoopList(ComponentSystemBase, ref PlayerLoopSystem, Type)

    Add an ECS system to a specific point in the Unity player loop, so that it is updated every frame.

    Declaration
    public static void AppendSystemToPlayerLoopList(ComponentSystemBase system, ref PlayerLoopSystem playerLoop, Type playerLoopSystemType)
    Parameters
    Type Name Description
    ComponentSystemBase system

    The ECS system to add to the player loop.

    PlayerLoopSystem playerLoop

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

    Type playerLoopSystemType

    The Type of the PlayerLoopSystem subsystem to which the ECS system should be appended. See the UnityEngine.PlayerLoop namespace for valid values.

    Remarks

    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