public override void OnInspectorGUI() { LevelEditor script = (LevelEditor)target; GUILayout.BeginHorizontal(); GUILayout.BeginVertical(); if (GUILayout.Button("+", GUILayout.Width(40), GUILayout.Height(20))) { script.AddRow(); } if (GUILayout.Button("-", GUILayout.Width(40), GUILayout.Height(20))) { script.RemoveRow(); } GUILayout.EndVertical(); GUILayout.BeginVertical(); if (GUILayout.Button("Save", GUILayout.Width(40), GUILayout.Height(40))) { script.Save(); } GUILayout.EndVertical(); GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); GUILayout.Space(40); if (GUILayout.Button("-", GUILayout.Width(20), GUILayout.Height(40))) { script.RemoveColumn(); } if (GUILayout.Button("+", GUILayout.Width(20), GUILayout.Height(40))) { script.AddColumn(); } GUILayout.EndHorizontal(); DrawDefaultInspector(); }