# depthTextureMode

> How and if camera generates a depth texture.

## Definition

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

```csharp
public DepthTextureMode depthTextureMode { get; set; }
```

### Remarks

A camera can build a screen-space depth texture. This is mostly useful for image post-processing effects. Note that generating the texture incurs a performance cost.

Additional Resources: [Using camera's depth textures](/engine/6000.6/manual/cameras/camera-output/sl-camera-depth-texture.md), [DepthTextureMode](/engine/6000.6/script-reference/unityengine/depthtexturemode.md).
