文档

Unity Engine

Download Unity

Unity Engine

PostLateUpdate.ScriptRunDelayedDynamicFrameRate

Native Player loop system that runs delayed script calls queued after Update.ScriptRunDelayedDynamicFrameRate, such as MonoBehaviour.Start for scripts enabled during Update or LateUpdate.
阅读时间1 分钟最后更新于 5 天前

Definition

public struct PostLateUpdate.ScriptRunDelayedDynamicFrameRate

Remarks

This system runs the same kind of delayed calls as
Update.ScriptRunDelayedDynamicFrameRate
, but picks up the calls that scripts queue later in the frame, so that they run before rendering. This includes MonoBehaviour.Start() for scripts added or enabled during MonoBehaviour.Update() or MonoBehaviour.LateUpdate(), and MonoBehaviour.Invoke calls with no delay. Coroutines that yield during the frame don't resume here. They resume in a later 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.