Forum Discussion
kennard-consulting
2 years agoExpert Protege
Spatial Anchors - how to view/delete in profile/privacy
I am saving Spatial Anchors to my cloud profile. I am storing their UUIDs separately and trying to remember to clean them up. But I'm worried sometimes I am losing the UUID and accidentally leaving a...
- 2 years ago
Ok - just over 24 hours later. For my un-shared anchor stored both locally and in the cloud... the cloud anchor worked all day today until the 24 hours was up and then stopped loading. The local anchor was available all day and did NOT stop loading after 24 hours.
So - regardless of whether you share it or not, if you store it in the cloud its only valid for 24 hours. If you store it locally its only available to you, but it persists until you delete it (assumedly... time will confirm that hypothesis), clear the app data, or delete the app.
JeffNik
2 years agoMVP
Ok - just over 24 hours later. For my un-shared anchor stored both locally and in the cloud... the cloud anchor worked all day today until the 24 hours was up and then stopped loading. The local anchor was available all day and did NOT stop loading after 24 hours.
So - regardless of whether you share it or not, if you store it in the cloud its only valid for 24 hours. If you store it locally its only available to you, but it persists until you delete it (assumedly... time will confirm that hypothesis), clear the app data, or delete the app.
- shubacurry2 years agoProtege
Hey I know this is 6 months late but I'm trying to establish how to use spatial anchors in a simple singleplayer scene on Unity with MetaXR All-in-One SDK v63 - I can't seem to follow the documentation online, whatever I tried hasn't worked. Where did you learn how to use Spatial Anchors?
- JeffNik2 years agoMVP
This is the online docs where I learned it (but that may be the same documentation that you didn't have much luck with)
Spatial Anchors Overview: Unity | Oculus Developers
I did find it to be complete, albeit complicated.
To be completely honest, if all you want is a very simple spatial anchor that always stays in the same place in your room regardless of where you're looking and regardless of whether you re-center your view, just create your GameObject and add a OVRSpatialAnchor component to it with AddComponent. The SDK itself will take care of the rest. Or if you're using a prefab, just add the OVRSpatialAnchor component to it when you create the prefab. When you instantiate it, the Meta SDK will automagically freeze it in place relative to your room, based upon your orientation when you last recentered your view..
Things get a bit more complicated if you want to store or retrieve the anchors for later use (by your headset), but still is relatively simple. But it gets MUCH more complicated from there if you want to have multiple headsets in the room at the same time, seeing the same object in the same place.
Feel free to let me know which part you want more info about.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 2 years ago