public void Startcamera() { vrcamera.GetComponent <VuforiaBehaviour>().enabled = true; CameraDevice.Instance.Init(CameraDevice.CameraDirection.CAMERA_DEFAULT); CameraDevice.Instance.Start(); VuforiaUnity.OnResume(); }
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(); }