UnityEssentials
Small but useful tools and features for Unity
Save.cs
Go to the documentation of this file.
1 #if UNITY_EDITOR
2 using UnityEditor;
3 using UnityEngine;
4 
5 namespace Essentials.EditorTweaks
6 {
7 
11  public class Save
12  {
16  [MenuItem("File/Save Scene and Project %#&s", false, 180)]
17  static void SaveSceneAndProject()
18  {
19  EditorApplication.ExecuteMenuItem("File/Save");
20  EditorApplication.ExecuteMenuItem("File/Save Project");
21  Debug.Log("Saved scene and project");
22  }
23 
27  [MenuItem("File/Save project %&s", false, 200)]
28  static void SaveProject()
29  {
30  EditorApplication.ExecuteMenuItem("File/Save Project");
31  Debug.Log("Saved project");
32  }
33  }
34 
35 }
36 #endif