Documentation

Unity Engine

Download Unity

Unity Engine

Update.ScriptRunDelayedDynamicFrameRate

Native Player loop system that runs delayed script calls that are due, such as coroutines that yield null or WaitForSeconds.
Read time 1 minuteLast updated 6 days ago

Definition

public struct Update.ScriptRunDelayedDynamicFrameRate

Remarks

This system resumes coroutines that wait for the next frame or for a time delay, and code that awaits Awaitable.NextFrameAsync or Awaitable.WaitForSecondsAsync. It also runs calls scheduled with MonoBehaviour.Invoke and MonoBehaviour.InvokeRepeating, destroys objects passed to Object.Destroy with a delay, and calls MonoBehaviour.Start() on newly enabled scripts.
Invoke
calls, delayed
Destroy
calls, and
Start
can also run in
FixedUpdate.ScriptRunDelayedFixedFrameRate
if a fixed update happens first.
PostLateUpdate.ScriptRunDelayedDynamicFrameRate
runs the calls that scripts schedule later in the frame.
This struct identifies a native system in the Player loop. It has no members, and the system's update logic runs in native engine code. Use this type with PlayerLoopSystem.type to find the system when you reorder, replace, or remove it in a custom Player loop. For more information, refer to Customizing the Player loop.