docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRGraphics

    XRGraphics insulates SRP from API changes across platforms, Editor versions, and as XR transitions into XR SDK

    Inheritance
    object
    XRGraphics
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    [Serializable]
    public class XRGraphics

    Properties

    Name Description
    enabled

    SRP should use this to safely determine whether XR is enabled at runtime.

    eyeTextureDesc

    Eye texture descriptor.

    eyeTextureHeight

    Eye texture height.

    eyeTextureResolutionScale

    Eye texture resolution scale.

    eyeTextureWidth

    Eye texture width.

    isDeviceActive

    Returns true if the XR device is active.

    loadedDeviceName

    Name of the loaded XR device.

    renderViewportScale

    Render viewport scale.

    stereoRenderingMode

    Stereo rendering mode.

    supportedDevices

    List of supported XR devices.

    tryEnable

    Try enable.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)