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?