I would like to pause Vuforia to take a screenshot using the native camera on IOS.
It's not possible to do this without stopping the camera used for Vuforia in Unity.
// stop vuforia
VuforiaBehaviour.Instance.enabled = false;
// start vuforia
VuforiaBehaviour.Instance.enabled = true;
OR
// stop vuforia
CameraDevice.Instance.Stop();
CameraDevice.Instance.Deinit();// start vuforia
CameraDevice.Instance.Init(CameraDevice.CameraDirection.CAMERA_DEFAULT);
CameraDevice.Instance.Start();
Both above approaches work, but the App freezes for 2 seconds as the Camera is re-initialized.
Is there an alternative approach that is faster? That is more PAUSE/RESTART than STOP/PLAY?
Thanks
I have been able to get an OpenGL texture of the camera image.
However it is flipped vertically. Is this to be expected?