IsWorldInPlayerLoop(World, PlayerLoopSystem)
Search the provided player loop for any systems added by this World.
Read time 1 minuteLast updated 8 hours ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.CoreModule
public static bool IsWorldInPlayerLoop(World world, PlayerLoopSystem playerLoop)
Parameters
The function will search the provided PlayerLoopSystem for systems owned by this World.
Existing player loop to search (e.g. PlayerLoop.GetCurrentPlayerLoop())
Returns
Type | Description |
|---|---|
| bool | True if any of this World's systems are found in the provided player loop; otherwise, false. |
Remarks
Note that systems are not added to the player loop directly; they are wrapped by a DummyDelegate object that calls the system's Update() method. Any systems added to the loop using other wrapper mechanisms will not be detected by this function.