Auto Localisation on the Magic Leap 2

Hi.

Simple question from me, but was not able to find the answer elsewhere. When I create more than one Space, I can manually localise into one of the spaces using the API or the Spaces app. Is there not a way to automatically detect which space the user is in and localise to the correct space?
If not, then do you have suggestions on how one may implement a feature like this.

Hi,
Can you tell me a bit more about the use case here? I assume you want to have say, location A saved as a Space and then an entirely different location B saved as another Space and have the ML2 automatically recognize it without you ever having to load either Space?

Yes exactly. Just curious whether the MagicLeap supports this. If a User is using an app, and has anchors in different rooms, it would be a bit of a pain for them to have to open some menu to pick what space they are currently in. It would be good if the device could localise into the correct space, but not sure if this is supported.

How big are the rooms we’re talking about? As far as I know you can have multiple rooms contained in a Space and multiple Anchors. While Magic Leap doesn’t have specific APIs for this, Unity and Unreal can support. You can also use QR codes to assist with this I believe.

See the Localization Map and Spatial Anchor Storage Docs

Yes you can have multiple rooms within the same space. If a user did have many spaces mapped would you therefore recommend showing some kind of UI panel for them to choose which of the spaces they are in (assuming QR codes can’t be used)?