The Android XR SDK is now available in Developer Preview. We want your feedback! Visit our
support page to reach out.
Stay organized with collections
Save and categorize content based on your preferences.
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
|
Runtime permission required to enable body tracking.
|
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"
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
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-08 UTC.
[null,null,["Last updated 2025-05-08 UTC."],[],[],null,["# XRBodyTrackingFeature Class Reference\n\nXRBodyTrackingFeature\n=====================\n\nThis `OpenXRInteractionFeature` configures Android XR extensions `XR_ANDROIDX_body_tracking` at runtime and provides `XRHumanBodySubsystem` implementation that works on Android XR platform.\n\nNote: due to the dependency on [XRSessionFeature](/develop/xr/unity/reference/class/Google/XR/Extensions/XRSessionFeature#classGoogle_1_1XR_1_1Extensions_1_1XRSessionFeature), its priority must be lower than the features so the feature registration happens after `XrInstanceManager` creation.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: `OpenXRFeature`\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| [ExtensionString](#extensionstring)` = \"XR_ANDROIDX_body_tracking\"` | `const string` The OpenXR Extension string. |\n| [FeatureId](#featureid)` = \"com.google.xr.extensions.body_tracking\"` | `const string` The feature ID string. |\n| [UiName](#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. |\n\n| ### Public static attributes ||\n|--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [IsExtensionEnabled](#isextensionenabled)` =\u003e _extensionEnabled` | `bool` Gets if the required OpenXR extension is enabled. |\n| [RequiredPermission](#requiredpermission)` = AndroidXRPermission.BodyTracking` | `readonly `[AndroidXRPermission](/develop/xr/unity/reference/namespace/Google/XR/Extensions#androidxrpermission) Runtime permission required to enable body tracking. |\n\n| ### Properties ||\n|-----------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AutoCalibration](#autocalibration) | `bool` Gets or sets a value indicating whether to use automatic calibration at runtime. |\n| [HumanBodyProportions](#humanbodyproportions) | [XRHumanBodyProportions](/develop/xr/unity/reference/class/Google/XR/Extensions/XRHumanBodyProportions#classGoogle_1_1XR_1_1Extensions_1_1XRHumanBodyProportions) Gets or sets the [XRHumanBodyProportions](/develop/xr/unity/reference/class/Google/XR/Extensions/XRHumanBodyProportions#classGoogle_1_1XR_1_1Extensions_1_1XRHumanBodyProportions) for rest pose skeleton computation. |\n\nPublic attributes\n-----------------\n\n### ExtensionString\n\n```c#\nconst string ExtensionString = \"XR_ANDROIDX_body_tracking\"\n``` \nThe OpenXR Extension string.\n\nUsed to check if this extensions is available or enabled. \n\n### FeatureId\n\n```c#\nconst string FeatureId = \"com.google.xr.extensions.body_tracking\"\n``` \nThe feature ID string. \n\n### UiName\n\n```c#\nconst string UiName = \"Android XR (Extensions): Human Body (Experimental*)\"\n``` \nThe UI name shows on the XR Plug-in Management panel, help users to understand validation errors and expected fixes.\n\nPublic static attributes\n------------------------\n\n### IsExtensionEnabled\n\n```c#\nbool IsExtensionEnabled =\u003e _extensionEnabled\n``` \nGets if the required OpenXR extension is enabled.\n\nWhen OpenXR runtime is waiting, it returns `null`. Otherwise, it indicates whether the XR_ANDROIDX_body_tracking extension is available on current device. \n\n### RequiredPermission\n\n```c#\nreadonly AndroidXRPermission RequiredPermission =\n AndroidXRPermission.BodyTracking\n``` \nRuntime permission required to enable body tracking.\n\nProperties\n----------\n\n### AutoCalibration\n\n```c#\nbool AutoCalibration\n``` \nGets or sets a value indicating whether to use automatic calibration at runtime.\n\nWhen automatic calibration is disabled, [HumanBodyProportions](/develop/xr/unity/reference/class/Google/XR/Extensions/XRBodyTrackingFeature#humanbodyproportions) will take effect. \n\n### HumanBodyProportions\n\n```c#\nXRHumanBodyProportions HumanBodyProportions\n``` \nGets or sets the [XRHumanBodyProportions](/develop/xr/unity/reference/class/Google/XR/Extensions/XRHumanBodyProportions#classGoogle_1_1XR_1_1Extensions_1_1XRHumanBodyProportions) for rest pose skeleton computation.\n\nIt only takes effect when [AutoCalibration](/develop/xr/unity/reference/class/Google/XR/Extensions/XRBodyTrackingFeature#autocalibration) is disabled."]]