Take a look at our sample OpenXR project here:
https://github.com/microsoft/Microsoft-OpenXR-Unreal/tree/main/MsftOpenXRGame
A right-select will spawn an ARPin at your hand's location and add it to a list of anchors to be converted to ASA anchors:
Then a voice command will upload those anchors to the cloud:
Finally, cloud anchors are located from an ASA watcher:
Create the watcher:
Subscribe to the ASAAnchor Located Delegate:
(AzureSpatialAnchorsEvent is a component that needs to be added to the blueprint)
And finally load a local pin from anchors the ASA watcher finds:
Note that this function will change the ARPin model to a green material when an upload has succeeded - do not close the project until the anchors have uploaded.
Note also that Azure Spatial Anchors will not work over remoting, you will need to run your project on a HoloLens