Class XRUtils
XR Utility class.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public static class XRUtils
Methods
DrawOcclusionMesh(CommandBuffer, Camera, bool)
Draw the XR occlusion mesh.
Declaration
public static void DrawOcclusionMesh(CommandBuffer cmd, Camera camera, bool stereoEnabled = true)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Command Buffer used to draw the occlusion mesh. |
Camera | camera | Camera for which the occlusion mesh is rendered. |
bool | stereoEnabled | True if stereo rendering is enabled. |