UnityEditor.SearchableEditorWindow.OnSearchForReferences C# (CSharp) Method

OnSearchForReferences() private method

private OnSearchForReferences ( ) : void
return void
        private static void OnSearchForReferences()
        {
            string str;
            int activeInstanceID = Selection.activeInstanceID;
            string str2 = AssetDatabase.GetAssetPath(activeInstanceID).Substring(7);
            if (str2.IndexOf(' ') != -1)
            {
                str2 = '"' + str2 + '"';
            }
            if (AssetDatabase.IsMainAsset(activeInstanceID))
            {
                str = "ref:" + str2;
            }
            else
            {
                object[] objArray1 = new object[] { "ref:", activeInstanceID, ":", str2 };
                str = string.Concat(objArray1);
            }
            foreach (SearchableEditorWindow window in searchableWindows)
            {
                if (window.m_HierarchyType == HierarchyType.GameObjects)
                {
                    window.SetSearchFilter(str, SearchMode.All, false);
                    window.m_HasSearchFilterFocus = true;
                    window.Repaint();
                }
            }
        }