Resetting the device position upon application start

Is there any way to reset the position of the device each time we start an application?

Currently, the device remembers where an application was started and it preserves that location even after exiting the application and restarting the application spawns the layout at the old spatial location.

The desired behavior is that each time a user starts an application the layout or UI gets positioned in relation to the user and not the environment.

It would be really helpful if you could provide a solution and walkthrough in Unity and also in Native applications.

Best regards,

You can enable RecenterXROriginAtStart on the Magic Leap Camera component . This component is on the Main Camera inside the XR Rig Component. If the component is not present on the Main Camera you can add it from the Add Component menu.


Thank you so much for your prompt answer and your help. :slight_smile:

1 Like