public override void OnInspectorGUI() { PatrolPath myTarget = target as PatrolPath; if (GUILayout.Button("Rebuild Path")) { myTarget.RebuildPath(); } addNodeMode = EditorGUILayout.Toggle("Add Nodes Mode", addNodeMode); this.DrawDefaultInspector(); }