Represents the different phases of the update cycle in Needle Engine.
Components can register for specific frame events to perform actions at precise moments.
The order of execution is: Start → EarlyUpdate → Update → LateUpdate → OnBeforeRender → OnAfterRender

Component.startCoroutine for using FrameEvent with coroutines

Enumeration Members

EarlyUpdate: 0

Called at the beginning of each frame, before the main update

LateUpdate: 2

Called after all Update callbacks have finished

OnAfterRender: 4

Called after the scene has been rendered

OnBeforeRender: 3

Called immediately before the scene is rendered

PostPhysicsStep: 10

Called after each physics simulation step

PrePhysicsStep: 9

Called before each physics simulation step

Start: -1

Called once when a component starts for the first time

Undefined: -1

Default value when no specific frame event is set

Update: 1

The main update phase, called once per frame