docs.unity.cn
    Show / Hide Table of Contents

    Class XRSRPSettings

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

    Inheritance
    Object
    XRSRPSettings
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering
    Syntax
    [Serializable]
    public class XRSRPSettings

    Properties

    enabled

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

    Declaration
    public static bool enabled { get; }
    Property Value
    Type Description
    Boolean

    eyeTextureDesc

    Eye texture descriptor.

    Declaration
    public static RenderTextureDescriptor eyeTextureDesc { get; }
    Property Value
    Type Description
    RenderTextureDescriptor

    eyeTextureHeight

    Eye texture height.

    Declaration
    public static int eyeTextureHeight { get; }
    Property Value
    Type Description
    Int32

    eyeTextureWidth

    Eye texture width.

    Declaration
    public static int eyeTextureWidth { get; }
    Property Value
    Type Description
    Int32

    isDeviceActive

    Returns true if the XR device is active.

    Declaration
    public static bool isDeviceActive { get; }
    Property Value
    Type Description
    Boolean

    loadedDeviceName

    Name of the loaded XR device.

    Declaration
    public static string loadedDeviceName { get; }
    Property Value
    Type Description
    String

    mirrorViewMode

    Eye texture height.

    Declaration
    public static int mirrorViewMode { get; set; }
    Property Value
    Type Description
    Int32

    occlusionMeshScale

    Eye texture height.

    Declaration
    public static float occlusionMeshScale { get; set; }
    Property Value
    Type Description
    Single

    supportedDevices

    List of supported XR devices.

    Declaration
    public static string[] supportedDevices { get; }
    Property Value
    Type Description
    String[]

    Extension Methods

    AnalyticsUtils.ToNestedColumn<T>(T, Boolean)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023