UnityEditor.AudioMixerGroupSelector.SearchArea C# (CSharp) Method

SearchArea() private method

private SearchArea ( Rect toolbarRect ) : void
toolbarRect UnityEngine.Rect
return void
        private void SearchArea(Rect toolbarRect)
        {
            GUI.Label(toolbarRect, GUIContent.none, "ObjectPickerToolbar");
            bool flag = (Event.current.type == EventType.KeyDown) && (Event.current.keyCode == KeyCode.Escape);
            GUI.SetNextControlName("SearchFilter");
            string str = EditorGUI.SearchField(new Rect(5f, 5f, toolbarRect.width - 10f, 15f), this.m_SearchFilter);
            if (flag && (Event.current.type == EventType.Used))
            {
                if (this.m_SearchFilter == string.Empty)
                {
                    this.Cancel();
                }
                this.m_FocusSearchFilter = true;
            }
            if ((str != this.m_SearchFilter) || this.m_FocusSearchFilter)
            {
                this.m_SearchFilter = str;
                this.FilterSettingsChanged();
                this.Repaint();
            }
            if (this.m_FocusSearchFilter)
            {
                EditorGUI.FocusTextInControl("SearchFilter");
                this.m_FocusSearchFilter = false;
            }
        }