Log in or register to post comments

Ground plane switching between AR and non-AR

March 31, 2021 - 9:44am #2

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.

Ground plane switching between AR and non-AR

April 6, 2021 - 7:06am #1

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

You have 1 scene with the Menu, 2nd scene with AR content. When the back button is pressed, scene is changed. Vuforia Engine will de initialize automatically. Also from the menu when scelecting the ARScene Vuforia Engine will initialize automatically.

Thank you.

Vuforia Engine Support

Log in or register to post comments