| Parameter | Description |
|---|---|
| system | The ECS system to add to the player loop. |
| playerLoop | Existing player loop to modify (e.g. PlayerLoop.GetCurrentPlayerLoop()) |
| playerLoopSystemType | The Type of the PlayerLoopSystem subsystem to which the ECS system should be appended. See the UnityEngine.PlayerLoop namespace for valid values. |
Add an ECS system to a specific point in the Unity player loop, so that it is updated every frame.
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.