Beispiel #1
0
        private void ResetProfile()
        {
            CardboardQrCode.RetrieveDeviceParam();
            (IntPtr, int)par = CardboardQrCode.GetDeviceParamsPointer();

            if (par.Item2 == 0 && !Application.isEditor)
            {
                ScanQRCode();
                return;
            }

            //CardboardLensDistortion.DestroyLensDistortion();
            CardboardLensDistortion.CreateLensDistortion(par.Item1, par.Item2);
            RefreshCamera();

            // needUpdateProfile = false;

            (byte[], int)paramDetailVar = CardboardQrCode.GetDeviceParamsByte();
            NativeDataExtract.Save_EncodedParam(paramDetailVar.Item1, paramDetailVar.Item2);
        }
Beispiel #2
0
 private void DeviceParamsChanged()
 {
     // debugTextStatic.text = string.Format("eyefromhead=\r\n{0}", CardboardManager.eyeFromHeadMatrixLeft);
     Debug.Log("qr code scan count=" + CardboardQrCode.GetQRCodeScanCount());
 }
Beispiel #3
0
 private void ScanQRCode()
 {
     CardboardQrCode.StartScanQrCode();
     // needUpdateProfile = true;
     continuePanel.SetActive(true);
 }