Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DepthTextureMode

Depth texture generation mode for Camera.
Read time 1 minuteLast updated 4 days ago

Definition

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

Fields

Value

Description

DepthGenerate a depth texture.
DepthNormalsGenerate a depth + normals texture.
MotionVectorsSpecifies whether motion vectors should be rendered (if possible).
NoneDo not generate depth texture (Default).