Version: Unity 7.0 Alpha (7000.0)
Language : English
Preload mipmap levels
Sparse Textures

Analyze mipmap streaming

The Scene view has a Debug Draw Mode that helps you visualize and debug mipmap streaming in your scene. To enable it, follow these steps:

  1. Select Debug Draw Mode in the Scene view Draw Modes overlay.
  2. Select Texture Mipmap Streaming.

The Debug Draw Mode tints GameObjects the following colours:

  • Green if a texture uses fewer mipmap levels.
  • Red if a texture uses fewer mipmap levels because mipmap streaming doesn’t have enough resources to load them all.
  • Blue if a texture that doesn’t use mipmap streaming, or there’s no renderer calculating the mipmap levels.

Note: If you use the MainTexture API to set a main texture, the texture won’t display in the Debug Draw Mode.

If your project uses a scriptable render pipeline, use the following to analyze mipmap streaming instead:

Get mipmap streaming information in a script

To get information about texture memory, use the following properties:

To get information about the number of textures or renderers that mipmap streaming affects, use the following properties:

To get information about the mipmap levels for a texture, use the following properties:

Preload mipmap levels
Sparse Textures
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961