文档

Unity Engine

Download Unity

Unity Engine

PostLateUpdate.GraphicsWarmupPreloadedShaders

Native Player loop system that warms up preloaded shaders after startup, optionally spread over several frames.
阅读时间1 分钟最后更新于 5 天前

Definition

public struct PostLateUpdate.GraphicsWarmupPreloadedShaders

Remarks

This system is active only in Players, and only when the project's preloaded shaders are set to warm up after startup instead of before the first scene loads. If the project sets a time limit per frame, the system stops warming up shaders each frame when it reaches that limit, and continues in the next frame. When all preloaded shaders are warmed up, the system stops doing any work.
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.