Exemple #1
0
 public void Startcamera()
 {
     vrcamera.GetComponent <VuforiaBehaviour>().enabled = true;
     CameraDevice.Instance.Init(CameraDevice.CameraDirection.CAMERA_DEFAULT);
     CameraDevice.Instance.Start();
     VuforiaUnity.OnResume();
 }
Exemple #2
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();
 }
Exemple #3
0
    public void RestartCamera()
    {
        CameraDevice.Instance.Stop();
        CameraDevice.Instance.Deinit();

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

        VuforiaUnity.OnPause();
        VuforiaUnity.OnResume();
    }
Exemple #4
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();
 }