protected void end(string areaName) { if (open) { for (var i = 0; i < ButtonAttribute.maxBottonButtonCount; ++i) { using (Inspector.horizontal()) _editor.onButtons(areaName, i + 1); } //--EditorGUI.indentLevel; EditorGUILayout.EndVertical(); } Area.separator(); //GUILayout.Space(4f); }
public override void OnInspectorGUI() { EditorGUILayout.Separator(); using (horizontal()) { onButtons(ButtonAttribute.BeginArea, 0, GUILayout.ExpandWidth(false)); EditorGUILayout.Separator(); onButtons(ButtonAttribute.BeginArea, 1, GUILayout.ExpandWidth(false)); GUILayout.Space(4); moreScriptToggle(); debugButton(); scriptButton(); } // moreScriptBottons(); // onDebugInfo(); onDebug(); // using (area()) //Area.separatorLine(); { onInspectorGUIBegin(); onInspectorGUI(); onInspectorGUIEnd(); } // for (var i = 0; i < ButtonAttribute.maxBottonButtonCount; ++i) { using (Inspector.horizontal()) onButtons(ButtonAttribute.EndArea, i); } Area.separator(); }