private void SelectOrCreate() { EditorGUILayout.BeginHorizontal(); EditorUtil.Space(); EditorGUILayout.LabelField("Select or create a Character:"); EditorUtil.Space(); EditorGUILayout.EndHorizontal(); if (GUILayout.Button("Create a new Character")) { CreateCharacterDialog.Show(); } }
public override void OnGUI() { _editorData = gui.Object("Editor Data", _editorData); if (_editorData == null) { _internalName.Value = ""; if (GUILayout.Button("Create Character Data")) { CreateCharacterDialog.Show(_character); } } else { _internalName.Value = _editorData.InternalName; } MemberField(); }
private void ToolbarLeft() { if (GUILayout.Button("Create", EditorStyles.toolbarButton)) { CreateCharacterDialog.Show(); } if (Target == null) { return; } if (GUILayout.Button("Unload", EditorStyles.toolbarButton)) { Target = null; } if (GUILayout.Button("Build", EditorStyles.toolbarButton)) { Target.Generate(); } }