PlayerLoopSystem

struct in UnityEngine.LowLevel

/

Implemented in:UnityEngine.CoreModule

Description

The representation of a single system being updated by the player loop in Unity.

This struct represents a single system in the player loop. A system can be one of Unity's built-in native systems, or you can add new custom systems to the player loop using C#. Native systems can only be retrieved by calling PlayerLoop.GetDefaultPlayerLoop, and the parameters of them should not be modified.

Properties

loopConditionFunctionThe loop condition for a native engine system. To get a valid value for this, you must copy it from one of the PlayerLoopSystems returned by PlayerLoop.GetDefaultPlayerLoop.
subSystemListA list of sub systems which run as part of this item in the player loop.
typeThis property is used to identify which native system this belongs to, or to get the name of the managed system to show in the profiler.
updateDelegateA managed delegate. You can set this to create a new C# entrypoint in the player loop.
updateFunctionA native engine system. To get a valid value for this, you must copy it from one of the PlayerLoopSystems returned by PlayerLoop.GetDefaultPlayerLoop.

Did you find this page useful? Please give it a rating: