docs.unity3d.com
    目次を表示する/隠す

    Class XRGraphics

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

    Inheritance
    Object
    XRGraphics
    Namespace: UnityEngine.Rendering
    Syntax
    public class XRGraphics : object

    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

    eyeTextureResolutionScale

    Eye texture resolution scale.

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

    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

    renderViewportScale

    Render viewport scale.

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

    stereoRenderingMode

    Stereo rendering mode.

    Declaration
    public static XRGraphics.StereoRenderingMode stereoRenderingMode { get; }
    Property Value
    Type Description
    XRGraphics.StereoRenderingMode

    supportedDevices

    List of supported XR devices.

    Declaration
    public static string[] supportedDevices { get; }
    Property Value
    Type Description
    String[]
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)