Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


targetTextureMemory

Total texture memory usage in bytes after applying the memory budget and loading all textures.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static ulong targetTextureMemory { get; }

Remarks

Indicates the memory allocated to textures in the scene after loading all textures and applying the Texture memory budget, considering mipmap streaming settings. As Unity loads or unloads texture mipmaps, the Texture.currentTextureMemory value approaches the
targetTextureMemory
.
The value only considers instances of Texture2D and CubeMap textures. It does not include any other texture types. Furthermore, it does not track any 2D and CubeMap textures created internally by the Unity Editor.