Esempio n. 1
0
 public void switchCam()
 {
     if (ARCam.GetCameraDirection() == Vuforia.CameraDevice.CameraDirection.CAMERA_FRONT)
     {
         ARCam.Stop();
         ARCam.Deinit();
         ARCam.Init(Vuforia.CameraDevice.CameraDirection.CAMERA_BACK);
         ARCam.Start();
     }
     else if (ARCam.GetCameraDirection() == Vuforia.CameraDevice.CameraDirection.CAMERA_BACK)
     {
         ARCam.Stop();
         ARCam.Deinit();
         ARCam.Init(Vuforia.CameraDevice.CameraDirection.CAMERA_FRONT);
         ARCam.Start();
     }
 }
Esempio n. 2
0
 public void ChangeCameraDirection()
 {
     if (device.GetCameraDirection() == CameraDevice.CameraDirection.CAMERA_BACK)
     {
         direction = CameraDevice.CameraDirection.CAMERA_FRONT;
     }
     else
     {
         direction = CameraDevice.CameraDirection.CAMERA_BACK;
     }
     StopTracker();
     StopCamera();
     DeInitCamera();
     SetDirectionCamera(direction);
     StartCamera();
     StartTracker();
 }