Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

ScriptBehaviourUpdateOrder.IsWorldInPlayerLoop

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static bool IsWorldInPlayerLoop(World world, PlayerLoopSystem playerLoop);

Parameters

Parameter Description
world The function will search the provided PlayerLoopSystem for systems owned by this World.
playerLoop Existing player loop to search (e.g. PlayerLoop.GetCurrentPlayerLoop())

Returns

bool True if any of this World's systems are found in the provided player loop; otherwise, false.

Description

Search the provided player loop for any systems added by this World.

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.