Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


useOcclusionMesh

Specifies whether or not the occlusion mesh should be used when rendering. Enabled by default.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.VRModule
public static bool useOcclusionMesh { get; set; }

Remarks

The occlusion mesh prevents GPU work from happening on portions of the eye texture that won't be visible in the HMD. Disabling this will lead to a decrease in GPU rendering performance. However, this may be needed to deal with certain features such as the grab pass.