C Specification
The xrCreateAnchorSpaceANDROID function is defined as:
// Provided by XR_ANDROID_trackables
XrResult xrCreateAnchorSpaceANDROID(
XrSession session,
const XrAnchorSpaceCreateInfoANDROID* createInfo,
XrSpace* anchorOutput);
Parameters
Description
At any point in time both the position and direction of the anchor is
tracked or untracked together.
This means that the runtime must either set both
XR_SPACE_LOCATION_POSITION_TRACKED_BIT and
XR_SPACE_LOCATION_ORIENTATION_TRACKED_BIT or clear both
XR_SPACE_LOCATION_POSITION_TRACKED_BIT and
XR_SPACE_LOCATION_ORIENTATION_TRACKED_BIT when the application calls
xrLocateSpace or xrLocateSpaces for anchorOutput.
The application must eventually free the returned XrSpace via xrDestroySpace.
-
The runtime must return
XR_ERROR_FEATURE_UNSUPPORTEDif the runtime does not support anchors. -
The runtime must return
XR_ERROR_TRACKABLE_TYPE_NOT_SUPPORTED_ANDROIDif the specific anchor attachment is not supported for the type of the passed XrAnchorSpaceCreateInfoANDROID::trackableas returned by xrEnumerateSupportedAnchorTrackableTypesANDROID.
Document Notes
For more information, see the OpenXR Specification
This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.
Copyright
Copyright 2014-2025 The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.