XRSystemStateFeature
This XRSystemStateFeature provides a function to query the system state information at runtime.
Summary
Inheritance
Inherits from:OpenXRFeature Public attributes | |
|---|---|
ExtensionString = "XR_ANDROIDX_system_state" | const string The OpenXR Extension string. |
FeatureId = "com.google.xr.extensions.system_state" | const string The feature ID string. |
UiName = "Android XR: System State (Experimental*)" | const string The UI name shows on the XR Plug-in Management panel, to help users understand validation errors and expected fixes. |
Public static attributes | |
|---|---|
IsExtensionEnabled => _extensionEnabled | bool Gets if the required OpenXR extension is enabled. |
Public static functions | |
|---|---|
TryGetSystemState(out XrSystemState systemState) | bool Gets the current system state |
Public attributes
ExtensionString
const string ExtensionString = "XR_ANDROIDX_system_state"
The OpenXR Extension string.
Used to check if this extension is available or enabled.
FeatureId
const string FeatureId = "com.google.xr.extensions.system_state"
The feature ID string.
UiName
const string UiName = "Android XR: System State (Experimental*)"
The UI name shows on the XR Plug-in Management panel, to help users understand validation errors and expected fixes.
Public static attributes
IsExtensionEnabled
bool IsExtensionEnabled => _extensionEnabled
Gets if the required OpenXR extension is enabled.
When OpenXR runtime is waiting, it returns null. Otherwise, it indicates whether the XR_ANDROIDX_system_state extension is available on the current device.
Public static functions
TryGetSystemState
bool TryGetSystemState( out XrSystemState systemState )
Gets the current system state
| Details | |||
|---|---|---|---|
| Parameters |
| ||