Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Depth

Clear only the depth buffer.
Read time 1 minuteLast updated 5 days 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.