コード例 #1
0
    void OnGUI()
    {
        if (s_Styles == null)
        {
            s_Styles = new Styles();
        }

        ToolbarGUI();

        EditorGUILayout.BeginHorizontal();
        {
            if (m_ShowList && m_List != null)
            {
                m_List.OnGUI();
                GUILayout.Space(styles.dividerSpace);
            }

            if (ShowMatchList)
            {
                m_MatchList.OnGUI();
                GUILayout.Space(styles.dividerSpace);
            }

            EditorGUILayout.BeginVertical();
            {
                if (m_Editor != null)
                {
                    m_Editor.OnGUI();
                }
                else
                {
                    MemberEditor.NoEditorGUI(this);
                }
            }
            EditorGUILayout.EndVertical();
        }
        EditorGUILayout.EndHorizontal();

        if (m_FirstLoad > 0 && Event.current.type == EventType.Repaint)
        {
            m_FirstLoad--;
            if (m_FirstLoad == 0)
            {
                LoadMembers();
            }
            Repaint();
        }
    }