Method AppendSystemToPlayerLoop
AppendSystemToPlayerLoop(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 AppendSystemToPlayerLoop(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.