docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class OpenXRRuntime

    OpenXR Runtime access

    Inheritance
    object
    OpenXRRuntime
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.XR.OpenXR
    Assembly: solution.dll
    Syntax
    public static class OpenXRRuntime

    Properties

    Name Description
    apiVersion

    Version of the current runtime API.

    name

    Name of the current runtime.

    pluginVersion

    Version of the current runtime plug-in.

    retryInitializationOnFormFactorErrors

    This bool controls whether or not to retry initialization if the runtime reports a FORM_FACTOR_UNAVAILABLE error during initialization.

    version

    Version of the current runtime.

    Methods

    Name Description
    GetAvailableExtensions()

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

    GetEnabledExtensions()

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

    GetExtensionVersion(string)

    Returns the version number of the given extension.

    IsExtensionEnabled(string)

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

    Events

    Name Description
    wantsToQuit

    This event is raised when OpenXR wants the application to quit.

    Note that this event is raised before Application.wantsToQuit is raised and is generally raised because the Runtime has requested the application quit.

    Return true and the quit process will continue. Return false and the quit process will cancel.

    wantsToRestart

    This event is raised when OpenXR Runtime wants to restart the XR loader by shutting down the loader and reinitializing it.

    Return true and the restart process will continue. Return false and the XR loader will be unloaded and the quit process will begin.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, November 1, 2023