Documentation

Unity Engine

Unity Engine

Depth

Clear only the depth buffer.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Depth = 3

Remarks

This will leave colors from the previous frame or whatever was displayed before. Additional Resources: Camera.clearFlags property, camera component.