public override void OnInspectorGUI() { DrawDefaultInspector(); BasicNodePath nodePath = (BasicNodePath)target; if (GUILayout.Button("Create Node")) { nodePath.CreateNewNode(); } if (GUILayout.Button("Create Objective")) { nodePath.CreateObjective(); } }