Update.ScriptRunDelayedDynamicFrameRate
Native Player loop system that runs delayed script calls that are due, such as coroutines that yield null or WaitForSeconds.
阅读时间1 分钟最后更新于 6 天前
Definition
- Type: Struct
- Namespace: UnityEngine.PlayerLoop
- Assembly: UnityEngine.CoreModule
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. calls, delayed calls, and can also run in if a fixed update happens first. runs the calls that scripts schedule later in the frame.
InvokeDestroyStartFixedUpdate.ScriptRunDelayedFixedFrameRatePostLateUpdate.ScriptRunDelayedDynamicFrameRateThis 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.