Beispiel #1
0
    EditorExpanse DrawTitle(int i)
    {
        EditorExpanse expanse = new EditorExpanse(editors[i]);

        if (!SISettings.titles)
        {
            return(expanse);
        }
        expanse.IsExpanded = SUI.Title(expanse.IsExpanded, editors[i]);
        return(expanse);
    }
Beispiel #2
0
    void DrawEditor(int i)
    {
        EditorExpanse expanse = DrawTitle(i);

        if (!expanse.IsExpanded)
        {
            return;
        }

        if (propSearch)
        {
            DrawEditorManually(i);
        }
        else
        {
            editors[i].OnInspectorGUI();
        }
    }