예제 #1
0
 private void OnApplicationPause(bool pause)
 {
     if (pause)
     {
         ARGearNative.Pause();
     }
     else
     {
         ARGearNative.Resume();
     }
 }
예제 #2
0
        public void SetFilterLevel(float level)
        {
            float filterLevel = level;

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

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

            ARGearNative.SetFilterLevel(filterLevel);
        }
예제 #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
        }
예제 #4
0
        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
        }
예제 #5
0
 public void SetDrawLandmark(bool isVisible)
 {
     ARGearNative.SetDrawLandmark(isVisible);
 }
예제 #6
0
 public void ClearContents(ARGEnum.ContentsType type)
 {
     ARGearNative.ClearContents(type);
 }
예제 #7
0
 public void SetBulge(ARGEnum.BulgeType type)
 {
     ARGearNative.SetBulge(type);
 }
예제 #8
0
 public void SetBeauty(float[] values)
 {
     ARGearNative.SetBeauty(ConvertBeautyData(values));
 }
예제 #9
0
 public void SetItem(ARGEnum.ContentsType type, string filePath, string uuid)
 {
     ARGearNative.SetItem(type, filePath, uuid);
 }
예제 #10
0
 public string RequestSignedUrl(string url, string title, string uuid)
 {
     return(ARGearNative.RequestSignedUrl(url, title, uuid));
 }
예제 #11
0
 public void ChangeCameraFacing()
 {
     ARGcamera.FlipCameraVertical();
     ARGearNative.ChangeCameraFacing();
 }
예제 #12
0
 private void OnDestroy()
 {
     ARGearNative.Destroy();
 }