Class OpenXRRuntime
OpenXR Runtime access
Inherited Members
Namespace: UnityEngine.XR.OpenXR
Syntax
public static class OpenXRRuntime
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 |