文档

Unity Engine

Unity Engine

depthTextureMode

How and if camera generates a depth texture.
阅读时间1 分钟最后更新于 1 个月前

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.