private void InitCamera() { Debug.Log("InitCamera() called, starting natcam"); #if (UNITY_IOS || UNITY_ANDROID) && !UNITY_EDITOR NatCam.Initialize(NatCamInterface.NativeInterface, PreviewType.NonReadable, Switch.Off); #else NatCam.Initialize(NatCamInterface.FallbackInterface, PreviewType.NonReadable, Switch.Off); #endif initialized = true; }
void Start() { _Menu.gameObject.SetActive(true); NatCam.NatCamPreviewStartEvent += OnFirstFrame; NatCam.Initialize(PreviewType.Readable); }