Documentation

Unity Engine

Download Unity

Unity Engine

RemoveWorldFromPlayerLoop(World, ref PlayerLoopSystem)

Remove all of this World's systems from the specified player loop.
Read time 1 minuteLast updated 8 hours ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.CoreModule

RemoveWorldFromPlayerLoop(World, PlayerLoopSystem)

public static void RemoveWorldFromPlayerLoop(World world, ref PlayerLoopSystem playerLoop)

Parameters

world

All systems in the provided player loop owned by this World will be removed from the player loop.

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.