Method IsWorldInPlayerLoop
IsWorldInPlayerLoop(World, PlayerLoopSystem)
Search the provided player loop for any systems added by this World.
Declaration
public static bool IsWorldInPlayerLoop(World world, PlayerLoopSystem playerLoop)
Parameters
| Type | Name | Description |
|---|---|---|
| World | world | The function will search the provided PlayerLoopSystem for systems owned by this World. |
| PlayerLoopSystem | playerLoop | Existing player loop to search (e.g. PlayerLoop.GetCurrentPlayerLoop()) |
Returns
| Type | Description |
|---|---|
| Boolean | 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.
IsWorldInPlayerLoop(World)
Declaration
public static bool IsWorldInPlayerLoop(World world)
Parameters
| Type | Name | Description |
|---|---|---|
| World | world |
Returns
| Type | Description |
|---|---|
| Boolean |