Texture.streamingTexturePendingLoadCount

切换到手册
public static ulong streamingTexturePendingLoadCount ;

描述

要加载的未完成 Mipmap 的串流纹理数量。

添加新摄像机时,可能在经过几帧之后才能检测需要加载哪些新纹理。因此,不能立即依赖该值。如果任何对象移动或摄像机移动,则此值将发生变化,因此无法保证降至零。 在实现摄像机剪辑时,建议您留出用于计算 Mipmap 级别的最短时间以及进行剪辑之前需要等待的最长时间。此属性可以与最短和最长时间之间的某个值一起使用,以便在 Mipmap 及时加载的情况下提前进行剪辑。

The minimum time is dependent on the number of renderers in the scene and the number that are processed each frame. A minimum frame delay can be calculated as (Texture.streamingRendererCount + (QualitySettings.streamingMipmapsRenderersPerFrame-1)) / QualitySettings.streamingMipmapsRenderersPerFrame. The maximum time should be an acceptable delay to a user. E.g. 0.5 seconds (or 30 frames at 60Hz).

另请参阅:Texture.streamingRendererCountQualitySettings.streamingMipmapsRenderersPerFrameTexture.streamingTextureLoadingCount