Forum Discussion
Zsaberhd
8 months agoExplorer
Colocation load old anchor
Hello!
I'm currently developing a Colocation App,
my goal is to store information of object position for take them be in the same position when you login again.
Actually i would like to just instantiate this objects as child of the colocation anchor and keep in the save info the localposition as an offset.
the problem i would like to troubleshoot is about the building block of colocation, it is creating every time you init him a new anchor, instead for my usage I would prefer to check if he have a anchor saved and then load/instantiate it.
what i can do?
here some extra informations:
Engine: Unity 6 (6000.0.37f1)
Meta XR SDK: 72.0.0
The Building Block won't take care of your use case. You would need to load your own anchor and then share that anchor instead of always creating a new one and then sharing that.
In this video you can see how to create and share anchors and create colocation: https://www.youtube.com/watch?v=elf6WuGzwdI
Here you can learn how to create, save, delete and load an anchor: https://www.youtube.com/watch?v=vaAQvdGYeak
2 Replies
Replies have been turned off for this discussion
- xrdevrobMeta Employee
The Building Block won't take care of your use case. You would need to load your own anchor and then share that anchor instead of always creating a new one and then sharing that.
In this video you can see how to create and share anchors and create colocation: https://www.youtube.com/watch?v=elf6WuGzwdI
Here you can learn how to create, save, delete and load an anchor: https://www.youtube.com/watch?v=vaAQvdGYeak - ZsaberhdExplorerThank you!!!I just finished replicating the video you shared with me, really helpful and easy to understand.Now I will definitely modify it according to my needs.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device