# DepthTextureMode

> Depth texture generation mode for Camera.

## Definition

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

```csharp
[Flags]
public enum DepthTextureMode
```

## Remarks

The flags can be combined, so you can set a Camera to generate any combination of: Depth, Depth+Normals, and MotionVector textures if needed.

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

## Fields

| Value                                                                                          | Description                                                        |
| ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| [Depth](/engine/6000.6/script-reference/unityengine/depthtexturemode/depth.md)                 | Generate a depth texture.                                          |
| [DepthNormals](/engine/6000.6/script-reference/unityengine/depthtexturemode/depthnormals.md)   | Generate a depth + normals texture.                                |
| [MotionVectors](/engine/6000.6/script-reference/unityengine/depthtexturemode/motionvectors.md) | Specifies whether motion vectors should be rendered (if possible). |
| [None](/engine/6000.6/script-reference/unityengine/depthtexturemode/none.md)                   | Do not generate depth texture (Default).                           |
