Method RemoveWorldFromPlayerLoop
RemoveWorldFromPlayerLoop(World, ref PlayerLoopSystem)
Remove all of this World's systems from the specified player loop.
Declaration
public static void RemoveWorldFromPlayerLoop(World world, ref PlayerLoopSystem playerLoop)
Parameters
Type | Name | Description |
---|---|---|
World | world | All systems in the provided player loop owned by this World will be removed from the player loop. |
PlayerLoopSystem | playerLoop | Existing player loop to modify (e.g. PlayerLoop.GetCurrentPlayerLoop()) |
Remarks
Only the systems from this World will be removed; other player loop modifications (including systems added by other Worlds) will not be affected.
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.