# volumeDepth

> Volume extent of a 3D render texture or number of slices of array texture.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public int volumeDepth { get; set; }
```

### Remarks

For volumetric render textures (see [RenderTexture.dimension](/engine/6000.0/script-reference/unityengine/rendertexture/dimension.md)), this variable determines the volume extent.

For array render texture (see [RenderTexture.dimension](/engine/6000.0/script-reference/unityengine/rendertexture/dimension.md)), this variable determines the number of slices.

Additional Resources: [RenderTexture.dimension](/engine/6000.0/script-reference/unityengine/rendertexture/dimension.md).
