public void CancelScanningProcess()
        {
            if (_editorPlayerPrefKey != null)
            {
                if (!EditorPrefs.HasKey(_editorPlayerPrefKey))
                {
                    EditorPrefs.SetString(_editorPlayerPrefKey, "");
                }
            }

            // cancel async processes;
            _cancelFlag = true;
            if (_wwwWrapper != null)
            {
                _wwwWrapper.Cancel();
            }

            // reset variables
            _isProjectScanned          = false;
            _isScanning                = false;
            _foundAssetsCountInProject = 0;
            AssetsFoundList            = new string[0];
            AssetsNotFoundList         = new string[0];
            AssetsList = new SortedDictionary <string, AssetItem>();

            Debug.Log("Project Scanning operation cancelled");
        }
Example #2
0
        public void CancelScanningProcess()
        {
            // cancel async processes;
            _cancelFlag = true;
            if (_wwwWrapper != null)
            {
                _wwwWrapper.Cancel();
            }

            // reset variables
            _isProjectScanned          = false;
            _isScanning                = false;
            _foundAssetsCountInProject = 0;
            AssetsFoundList            = new string[0];
            AssetsList = new Dictionary <string, AssetItem>();

            Debug.Log("Project Scanning operation cancelled");
        }