Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


volumeDepth

Volume extent of a 3D render texture or number of slices of array texture.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public int volumeDepth { get; set; }

Remarks

For volumetric render textures (see RenderTexture.dimension), this variable determines the volume extent.
For array render texture (see RenderTexture.dimension), this variable determines the number of slices.
Additional Resources: RenderTexture.dimension.