Class OpenXRRuntime
OpenXR Runtime access
Inherited Members
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. |