docs.unity3d.com
    Show / Hide Table of Contents

    Class OpenXRRuntime

    OpenXR Runtime access

    Inheritance
    Object
    OpenXRRuntime
    Namespace: UnityEngine.XR.OpenXR
    Syntax
    public static class OpenXRRuntime : object

    Properties

    apiVersion

    Version of the current runtime API.

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

    name

    Name of the current runtime.

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

    pluginVersion

    Version of the current runtime plug-in.

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

    version

    Version of the current runtime.

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

    Methods

    GetAvailableExtensions()

    Returns the list of names of extensions available within the OpenXR runtime.

    Declaration
    public static string[] GetAvailableExtensions()
    Returns
    Type Description
    String[]

    Array of extension names or an empty array if no extensions are available.

    GetEnabledExtensions()

    Returns the list of names of extensions enabled within the OpenXR runtime.

    Declaration
    public static string[] GetEnabledExtensions()
    Returns
    Type Description
    String[]

    Array of extension names or an empty array if no extensions are enabled.

    GetExtensionVersion(String)

    Returns the version number of the given extension.

    Declaration
    public static uint GetExtensionVersion(string extensionName)
    Parameters
    Type Name Description
    String extensionName

    Name of the extension

    Returns
    Type Description
    UInt32

    Version number of given extension, or zero if the extension was not found

    IsExtensionEnabled(String)

    Describes whether the OpenXR Extension with the given name is enabled.

    Declaration
    public static bool IsExtensionEnabled(string extensionName)
    Parameters
    Type Name Description
    String extensionName

    Name of the extension

    Returns
    Type Description
    Boolean

    True if the extension matching the given name is enabled, false otherwise

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023