cancel
Showing results for 
Search instead for 
Did you mean: 

Colocation load old anchor

Zsaberhd
Explorer

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

1 ACCEPTED SOLUTION

Accepted Solutions

xrdevrob
Protege

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

View solution in original post

2 REPLIES 2

xrdevrob
Protege

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

Zsaberhd
Explorer
Thank 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.