/// <summary>
 /// Stop the async search session and discard any new search results.
 /// </summary>
 public void Stop()
 {
     if (m_IsRunning)
     {
         --s_RunningSessions;
     }
     m_IsRunning = false;
     EditorApplication.update -= OnUpdate;
     m_ItemsEnumerator.Clear();
 }
示例#2
0
        /// <summary>
        /// Stop the async search session and discard any new search results.
        /// </summary>
        public void Stop()
        {
            if (searchInProgress)
            {
                sessionEnded?.Invoke(m_Context);
            }

            searchInProgress          = false;
            EditorApplication.update -= OnUpdate;
            m_ItemsEnumerator.Clear();
        }
 /// <summary>
 /// Stop the async search session and discard any new search results.
 /// </summary>
 public void Stop()
 {
     searchInProgress          = false;
     EditorApplication.update -= OnUpdate;
     m_ItemsEnumerator.Clear();
 }