The Android XR SDK has reached Developer Preview 4, and we want your feedback! Try things out, and visit our support page to reach out.

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, Google.XR.Extensions.IXRSpatialSdk

Public attributes

ExtensionString = "XR_ANDROIDX1_body_tracking"
const string
The OpenXR Extension string.
FeatureId = "com.google.xr.extensions.body_tracking"
const string
The feature ID string.
RequestedJointSet => _jointSet
Gets the requested joint set to be tracked at runtime.
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.

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 functions

GetTargetVersion()
Gets the target version of the given feature if applicable.

Public attributes

ExtensionString

conststringExtensionString="XR_ANDROIDX1_body_tracking"

The OpenXR Extension string.

Used to check if this extensions is available or enabled.

FeatureId

conststringFeatureId="com.google.xr.extensions.body_tracking"

The feature ID string.

RequestedJointSet

XRBodyJointSet RequestedJointSet=>_jointSet

Gets the requested joint set to be tracked at runtime.

UiName

conststringUiName="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

boolIsExtensionEnabled=>_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

readonlyAndroidXRPermission RequiredPermission=
AndroidXRPermission.BodyTracking

Runtime permission required to enable body tracking.

Properties

AutoCalibration

boolAutoCalibration

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.

Public functions

GetTargetVersion

XRSpatialSdkVersions GetTargetVersion()

Gets the target version of the given feature if applicable.

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 2026年07月30日 UTC.