/// <summary>Change Image Tracke Mode.</summary>
        public void SetTrackingOption(TrackingOption trackingOption)
        {
            NativeAPI.TrackerManager_setTrackingOption((int)trackingOption);

            if (trackingOption == TrackingOption.MULTI_TRACKING)
            {
                AbstractARManager.Instance.SetWorldCenterMode(AbstractARManager.WorldCenterMode.CAMERA);
            }
        }
Пример #2
0
        /// <summary>Change Image Tracke Mode.</summary>
        public void SetTrackingOption(TrackingOption trackingOption)
        {
            if (trackingOption == TrackingOption.CLOUD_RECOGNITION_AUTO_DEACTIVATION || trackingOption == TrackingOption.CLOUD_RECOGNITION_AUTO_ACTIVATION)
            {
                if (trackingOption == TrackingOption.CLOUD_RECOGNITION_AUTO_DEACTIVATION)
                {
                    cloudRecognitionController.SetAutoEnable(false);
                }
                else
                {
                    cloudRecognitionController.SetAutoEnable(true);
                }
            }
            else
            {
                NativeAPI.TrackerManager_setTrackingOption((int)trackingOption);

                if (trackingOption == TrackingOption.MULTI_TRACKING)
                {
                    AbstractARManager.Instance.SetWorldCenterMode(AbstractARManager.WorldCenterMode.CAMERA);
                }
            }
        }