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(); } }
public void SetDirectionCamera(CameraDevice.CameraDirection direction) { device.Init(direction); }