docs.unity.cn
    Show / Hide Table of Contents

    Class XRUtils

    XR Utility class.

    Inheritance
    Object
    XRUtils
    Namespace: UnityEngine.Rendering
    Syntax
    public static class XRUtils

    Methods

    DrawOcclusionMesh(CommandBuffer, Camera, Boolean)

    Draw the XR occlusion mesh.

    Declaration
    public static void DrawOcclusionMesh(CommandBuffer cmd, Camera camera, bool stereoEnabled = true)
    Parameters
    Type Name Description
    UnityEngine.Rendering.CommandBuffer cmd

    Command Buffer used to draw the occlusion mesh.

    UnityEngine.Camera camera

    Camera for which the occlusion mesh is rendered.

    Boolean stereoEnabled

    True if stereo rendering is enabled.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 17 July 2023