public void Stop() { CameraDevice.Instance.Stop(); CameraDevice.Instance.Deinit(); VuforiaUnity.OnPause(); vrcamera.GetComponent <VuforiaBehaviour>().enabled = false; }
public void ExitAr() { CameraDevice.Instance.Stop(); CameraDevice.Instance.Deinit(); VuforiaUnity.OnPause(); vrcamera.GetComponent <VuforiaBehaviour>().enabled = false; SceneManager.LoadScene(0); }
private void RestartCamera(CameraDevice.CameraDirection newDir) { CameraDevice.Instance.Stop(); CameraDevice.Instance.Deinit(); CameraDevice.Instance.Init(newDir); CameraDevice.Instance.Start(); // Periodically check to see if still needed VuforiaUnity.OnPause(); VuforiaUnity.OnResume(); }
public void RestartCamera() { CameraDevice.Instance.Stop(); CameraDevice.Instance.Deinit(); CameraDevice.Instance.Init(); CameraDevice.Instance.Start(); VuforiaUnity.OnPause(); VuforiaUnity.OnResume(); }
private void RestartCamera(CameraDevice.CameraDirection newDir) { CameraDevice.Instance.Stop(); CameraDevice.Instance.Deinit(); CameraDevice.Instance.Init(newDir); CameraDevice.Instance.Start(); // These are to fight the bug the will otherwise flip the selfie cam upside down on iOS // Periodically check to see if still needed VuforiaUnity.OnPause(); VuforiaUnity.OnResume(); }