Esempio n. 1
0
 public void Stop()
 {
     CameraDevice.Instance.Stop();
     CameraDevice.Instance.Deinit();
     VuforiaUnity.OnPause();
     vrcamera.GetComponent <VuforiaBehaviour>().enabled = false;
 }
Esempio n. 2
0
 public void ExitAr()
 {
     CameraDevice.Instance.Stop();
     CameraDevice.Instance.Deinit();
     VuforiaUnity.OnPause();
     vrcamera.GetComponent <VuforiaBehaviour>().enabled = false;
     SceneManager.LoadScene(0);
 }
Esempio n. 3
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();
 }
Esempio n. 4
0
    public void RestartCamera()
    {
        CameraDevice.Instance.Stop();
        CameraDevice.Instance.Deinit();

        CameraDevice.Instance.Init();
        CameraDevice.Instance.Start();

        VuforiaUnity.OnPause();
        VuforiaUnity.OnResume();
    }
Esempio n. 5
0
 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();
 }