Spatial Anchor Overview
The Magic Leap 2 OpenXR Unity SDK supports creating local anchors through the Magic Leap Spatial Anchor Subsystem 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 access the Spatial Anchor API 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 API Overview
This section provides an overview and API references for the the Magic Leap 2 Spatial Anchor Subsystem OpenXR Feature.
📄️ Spatial Anchor Example
This section includes an example of using Unity's AR Foundation to create local anchors on the Magic Leap 2 headset.