Spatial Anchor Overview
The Magic Leap 2 OpenXR Unity SDK supports creating local anchors through the Magic Leap Spatial Anchors Storage feature. This feature needs to be enabled in the OpenXR Settings (Edit > Project Settings > XR Plug-in Management > OpenXR), in the OpenXR Feature Groups section.
Enabling the Magic Leap Anchor Subsystem feature allows developers to save the Spatial Anchors created via Unity's AR Foundation Package .
This feature requires the SPATIAL_ANCHOR
permission to be enabled in your project's Permissions Settings (Edit > Project Settings > Magic Leap > Permissions).
In this Category
📄️ Spatial Anchor Storage API Overview
This guide provides an overview of the Magic Leap Spatial Anchor Storage Feature. This API allows you to create, manage, and persist spatial anchors. Spatial anchors and their storage are two different but related features, using ARFoundation for the anchors in scene and the MagicLeapSpatialAnchorsStorageFeature for persistence.
📄️ Spatial Anchors Storage Example
This API allows you to create, manage, and persist spatial anchors in Unity using Magic Leap spatial anchor storage feature. Spatial anchors and their storage are two different but related features, using ARFoundation for the anchors in scene and the MagicLeapSpatialAnchorsStorageFeature for persistence.