Esempio n. 1
0
    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;
    }
Esempio n. 2
0
 void Start()
 {
     _Menu.gameObject.SetActive(true);
     NatCam.NatCamPreviewStartEvent += OnFirstFrame;
     NatCam.Initialize(PreviewType.Readable);
 }