protected override void OnTrackingFound() { Debug.Log("<color=blue>OnTrackingFound()</color>"); base.OnTrackingFound(); if (m_CloudRecoContentManager) { m_CloudRecoContentManager.ShowTargetInfo(true); } // Stop finder since we have now a result, finder will be restarted again when we lose track of the result ObjectTracker objectTracker = TrackerManager.Instance.GetTracker <ObjectTracker>(); if (objectTracker != null) { objectTracker.GetTargetFinder <TargetFinder>().Stop(); if (m_ScanLine) { // Stop showing the scan-line m_ScanLine.ShowScanLine(false); } } }
/// <summary> /// when we start scanning, unregister Trackable from the ImageTargetTemplate, then delete all trackables /// </summary> public void OnStateChanged(bool scanning) { Debug.Log("<color=blue>OnStateChanged(): </color>" + scanning); isTargetFinderScanning = scanning; if (scanning) { // clear all known trackables m_TargetFinder.ClearTrackables(false); } m_ScanLine.ShowScanLine(scanning); }
/// <summary> /// when we start scanning, unregister Trackable from the ImageTargetTemplate, then delete all trackables /// </summary> public void OnStateChanged(bool scanning) { Debug.Log("<color=blue>OnStateChanged(): </color>" + scanning); if (scanning) { // clear all known trackables m_ObjectTracker.TargetFinder.ClearTrackables(false); } if (m_ScanLine != null) { m_ScanLine.ShowScanLine(scanning); } }