Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


depthTextureMode

How and if camera generates a depth texture.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
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.