/// <summary> /// Raises the change camera button click event. /// </summary> public void OnChangeCameraButtonClick() { #if UNITY_ANDROID && !UNITY_EDITOR if (!webCamTextureToMatHelper.IsFrontFacing()) { rearCameraRequestedFPS = webCamTextureToMatHelper.requestedFPS; webCamTextureToMatHelper.Initialize(!webCamTextureToMatHelper.IsFrontFacing(), 15, webCamTextureToMatHelper.rotate90Degree); } else { webCamTextureToMatHelper.Initialize(!webCamTextureToMatHelper.IsFrontFacing(), rearCameraRequestedFPS, webCamTextureToMatHelper.rotate90Degree); } #else webCamTextureToMatHelper.requestedIsFrontFacing = !webCamTextureToMatHelper.IsFrontFacing(); #endif }
/// <summary> /// Raises the change camera button click event. /// </summary> public void OnChangeCameraButtonClick() { webCamTextureToMatHelper.requestedIsFrontFacing = !webCamTextureToMatHelper.IsFrontFacing(); }