Skip to main content
Zsaberhd
Participant
March 21, 2025
Solved

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

    This topic has been closed for replies.
    xrdevrob
    xrdevrobAnswer
    Inspiring
    March 23, 2025

    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

    xrdevrob
    xrdevrobAnswer
    Inspiring
    March 23, 2025

    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
    ZsaberhdAuthor
    Participant
    April 1, 2025
    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.