public void OnGUI(Rect rect)
        {
            if (ReorderableListWithRenameAndScrollView.s_Styles == null)
            {
                ReorderableListWithRenameAndScrollView.s_Styles = new ReorderableListWithRenameAndScrollView.Styles();
            }
            if (this.onGetNameAtIndex == null)
            {
                Debug.LogError("Ensure to set: 'onGetNameAtIndex'");
            }
            Event current = Event.current;

            if (current.type == EventType.MouseDown && rect.Contains(current.mousePosition))
            {
                this.m_HadKeyFocusAtMouseDown = this.m_ReorderableList.HasKeyboardControl();
            }
            if (this.m_FrameIndex != -1)
            {
                this.EnsureRowIsVisible(this.m_FrameIndex, rect.height);
                this.m_FrameIndex = -1;
            }
            GUILayout.BeginArea(rect);
            this.m_State.m_ScrollPos = GUILayout.BeginScrollView(this.m_State.m_ScrollPos, new GUILayoutOption[0]);
            this.m_ReorderableList.DoLayoutList();
            GUILayout.EndScrollView();
            GUILayout.EndArea();
            AudioMixerDrawUtils.DrawScrollDropShadow(rect, this.m_State.m_ScrollPos.y, this.m_ReorderableList.GetHeight());
            this.KeyboardHandling();
            this.CommandHandling();
        }
        public void OnGUI(Rect rect)
        {
            if (s_Styles == null)
            {
                s_Styles = new Styles();
            }

            //Event evt = Event.current;

            if (onGetNameAtIndex == null)
            {
                Debug.LogError("Ensure to set: 'onGetNameAtIndex'");
            }

            Event evt = Event.current;

            if (evt.type == EventType.MouseDown && rect.Contains(evt.mousePosition))
            {
                m_HadKeyFocusAtMouseDown = m_ReorderableList.HasKeyboardControl();
            }

            if (m_FrameIndex != -1)
            {
                EnsureRowIsVisible(m_FrameIndex, rect.height);
                m_FrameIndex = -1;
            }

            GUILayout.BeginArea(rect);
            m_State.m_ScrollPos = GUILayout.BeginScrollView(m_State.m_ScrollPos);

            m_ReorderableList.DoLayoutList();

            GUILayout.EndScrollView();
            GUILayout.EndArea();
            AudioMixerDrawUtils.DrawScrollDropShadow(rect, m_State.m_ScrollPos.y, m_ReorderableList.GetHeight());

            KeyboardHandling();
            CommandHandling();
        }