public void Display() { if (HorizontalLine) { EditorWindowUtils.HorizontalLine(); } EditorWindowUtils.BeginHorizontal(); EditorWindowUtils.Label(Title, Tooltip, true); EditorWindowUtils.FlexibleSpace(); EditorWindowUtils.Button(ButtonAction, ButtonLabel); EditorWindowUtils.EndHorizontal(); EditorWindowUtils.Space(5); GUILayout.Label(Decsription, EditorStyles.wordWrappedLabel); EditorWindowUtils.Space(5); }
public void Display(bool HeaderHorizonatalLine) { if (HeaderHorizonatalLine) { EditorWindowUtils.HorizontalLine(); } EditorWindowUtils.BeginHorizontal(); IsExpanded = EditorGUILayout.Foldout(IsExpanded, Title, true); EditorWindowUtils.EndHorizontal(); EditorWindowUtils.HorizontalLine(); if (IsExpanded) { for (int i = 0; i < Elements.Count; i++) { Elements[i].Display(); } } }