Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEditor;
- using System.Collections;
- //From @ben_throop
- //Hope it saves you some pain
- //Copy to a new .cs file named SaveEverything.cs in /Editor folder or put the Save() method in some other editor script
- public class SaveEverything : MonoBehaviour
- {
- [MenuItem ("File/Save Everything %#e")]
- static void Save () {
- EditorApplication.SaveAssets();
- EditorApplication.SaveScene();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement