# useOcclusionMesh

> Specifies whether or not the occlusion mesh should be used when rendering. Enabled by default.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.XR](/engine/6000.3/script-reference/unityengine/xr.md)
* **Assembly:** UnityEngine.VRModule

```csharp
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.
