"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Ground plane switching between AR and non-AR

Hello,

I am creating an app using Ground Plane detection in Unity. This app will have both and AR section and non-AR section. When the user selects something, it will open the camera and start searching for ground and content will appear. When the user presses on Back, it will stop the camera and will go back to the main menu or regular type of touch interactions.

I want to know what is the best way for switching between these modes, without causing problems or crashes. What method from which script is best to invoke in order to make the switch?

 

Thank you.

Hi,

The easiest and recommended way would be to use the Scene Manager class in Unity. More info here:https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager.html