Skip to content

Instantly share code, notes, and snippets.

@JiboStore
Created July 15, 2015 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JiboStore/dfe0fdfbd8f7de6f0af7 to your computer and use it in GitHub Desktop.
Save JiboStore/dfe0fdfbd8f7de6f0af7 to your computer and use it in GitHub Desktop.
that'll auto serialise all your changed prefabs (ie write to disk) anytime you play or build
using UnityEditor;
using UnityEditor.Callbacks;
public class AutoSerialiseAssets : Editor {
[PostProcessScene(-2)]
public static void OnPostprocessScene() {
EditorApplication.SaveAssets();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment