Пример #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();
     }
 }
Пример #2
0
 public void SetDirectionCamera(CameraDevice.CameraDirection direction)
 {
     device.Init(direction);
 }