private void DrawButtons() { EditorGUILayout.Space(); EditorGUILayout.BeginHorizontal(); // Add button if (GUILayout.Button("Add Action", GUILayout.Height(32))) { _cutscenePlayer.AddNewAction(); } // Save to xml button if (GUILayout.Button("Save to XML", GUILayout.Height(32))) { var path = EditorUtility.SaveFilePanel("Save Cutscene to XML", "", "Cutscene", ".xml"); if (string.IsNullOrEmpty(path)) { return; } XmlConverter.SerializeAndSave(path, _cutscenePlayer.cutsceneActions); } EditorGUILayout.EndHorizontal(); }