private void OnApplicationPause(bool pause)
 {
     if (pause)
     {
         ARGearNative.Pause();
     }
     else
     {
         ARGearNative.Resume();
     }
 }
        public void SetFilterLevel(float level)
        {
            float filterLevel = level;

            if (level >= 100)
            {
                filterLevel = 99;
            }

            if (level <= 0)
            {
                filterLevel = 1;
            }

            ARGearNative.SetFilterLevel(filterLevel);
        }
Esempio n. 3
0
        void Start()
        {
            var featureArray = ARGearManager.Instance.InferenceConfigs.ToArray();
            var inferConfig  = featureArray.Cast <int>().ToArray();

            _arGearNative = new ARGearNative(ARGearManager.Instance.ApiUrl,
                                             ARGearManager.Instance.ApiKey,
                                             ARGearManager.Instance.SecretKey,
                                             ARGearManager.Instance.AuthKey,
                                             inferConfig);

#if UNITY_IOS
            // ios raw data is rotate 90 degree
            _screen.transform.localRotation = Quaternion.Euler(0.0f, 0.0f, -90.0f);
#endif
        }
        public void SetItem(ARGEnum.ContentsType type, string filePath, string uuid, ARGearContentsCallback callback = null)
        {
#if UNITY_ANDROID
            ARGearNative.SetItem(type, filePath, uuid, null, new ARGearAndroidContentsCallback(
                                     success =>
            {
                if (callback != null)
                {
                    callback.OnSuccess();
                }
            },
                                     error =>
            {
                if (callback != null)
                {
                    callback.OnError(error);
                }
            }
                                     ));
#elif UNITY_IOS
            ARGearNative.SetItem(type, filePath, uuid, callback);
#endif
        }
 public void SetDrawLandmark(bool isVisible)
 {
     ARGearNative.SetDrawLandmark(isVisible);
 }
 public void ClearContents(ARGEnum.ContentsType type)
 {
     ARGearNative.ClearContents(type);
 }
 public void SetBulge(ARGEnum.BulgeType type)
 {
     ARGearNative.SetBulge(type);
 }
 public void SetBeauty(float[] values)
 {
     ARGearNative.SetBeauty(ConvertBeautyData(values));
 }
 public void SetItem(ARGEnum.ContentsType type, string filePath, string uuid)
 {
     ARGearNative.SetItem(type, filePath, uuid);
 }
Esempio n. 10
0
 public string RequestSignedUrl(string url, string title, string uuid)
 {
     return(ARGearNative.RequestSignedUrl(url, title, uuid));
 }
Esempio n. 11
0
 public void ChangeCameraFacing()
 {
     ARGcamera.FlipCameraVertical();
     ARGearNative.ChangeCameraFacing();
 }
Esempio n. 12
0
 private void OnDestroy()
 {
     ARGearNative.Destroy();
 }