XRBodyTrackingFeature
This OpenXRInteractionFeature
configures Android XR extensions XR_ANDROIDX_body_tracking
at runtime and provides XRHumanBodySubsystem
implementation that works on Android XR platform.
Note: due to the dependency on XRSessionFeature
, its priority must be lower than the features so the feature registration happens after XrInstanceManager
creation.
Summary
Inheritance
Inherits from:OpenXRFeature
Public attributes |
|
---|---|
ExtensionString = "XR_ANDROIDX_body_tracking"
|
const string
The OpenXR Extension string.
|
FeatureId = "com.google.xr.extensions.body_tracking"
|
const string
The feature ID string.
|
UiName = "Android XR (Extensions): Human Body (Experimental*)"
|
const string
The UI name shows on the XR Plug-in Management panel, help users to understand validation errors and expected fixes.
|
Public static attributes |
|
---|---|
IsExtensionEnabled => _extensionEnabled
|
bool
Gets if the required OpenXR extension is enabled.
|
RequiredPermission =
AndroidXRPermission.BodyTracking
|
readonly AndroidXRPermission
Runtime permission required to enable body tracking.
|
Properties |
|
---|---|
AutoCalibration
|
bool
Gets or sets a value indicating whether to use automatic calibration at runtime.
|
HumanBodyProportions
|
Gets or sets the XRHumanBodyProportions for rest pose skeleton computation.
|
Public attributes
ExtensionString
const string ExtensionString = "XR_ANDROIDX_body_tracking"
The OpenXR Extension string.
Used to check if this extensions is available or enabled.
FeatureId
const string FeatureId = "com.google.xr.extensions.body_tracking"
The feature ID string.
UiName
const string UiName = "Android XR (Extensions): Human Body (Experimental*)"
The UI name shows on the XR Plug-in Management panel, help users to 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_body_tracking extension is available on current device.
RequiredPermission
readonly AndroidXRPermission RequiredPermission = AndroidXRPermission.BodyTracking
Runtime permission required to enable body tracking.
Properties
AutoCalibration
bool AutoCalibration
Gets or sets a value indicating whether to use automatic calibration at runtime.
When automatic calibration is disabled, HumanBodyProportions will take effect.
HumanBodyProportions
XRHumanBodyProportions HumanBodyProportions
Gets or sets the XRHumanBodyProportions for rest pose skeleton computation.
It only takes effect when AutoCalibration is disabled.