Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


zNear

Set DisplaySubsystem to use zNear for rendering.
Read time 1 minuteLast updated 14 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
public float zNear { get; set; }

Remarks

zNear is the near plan in meters from the main camera. ZFar and ZNear are used for explicit XR depth buffer sharing.