ドキュメント

Unity Engine

Unity Engine

totalTextureMemory

The total texture memory, in bytes, that Unity would use if all textures are loaded at full resolution.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

Remarks

This is a theoretical value that does not take into account any input from the streaming system or manual adjustments, such as setting the Texture2D.requestedMipmapLevel directly. To see a texture memory value that takes these inputs into account, use Texture.desiredTextureMemory.
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.