Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


occlusionMesh

Represents the area in screen-space that is not visible on the XR Display.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
public Mesh occlusionMesh

Remarks

You can use this to prevent GPU work from happening on portions of the XR textures that aren't visible in the XR display. This is an effective way to optimize the renderer.