# Depth

> Generate a depth texture.

## Definition

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

```csharp
Depth = 1
```

### Remarks

Will generate a screen-space depth texture as seen from this camera. Texture will be in [RenderTextureFormat.Depth](/engine/6000.5/script-reference/unityengine/rendertextureformat/depth.md) format and will be set as `_CameraDepthTexture` global shader property.

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