Skip to content

Instantly share code, notes, and snippets.

@gaypunkposer
gaypunkposer / AutoSave.cs
Last active November 16, 2023 11:39
Unity auto save script. Throw in Assets/Editor. Saves assets and scene when playing a scene.
//Works on Unity 5.3+
using UnityEditor;
using UnityEditor.SceneManagement;
[InitializeOnLoad]
public class AutoSave
{
//Constructor called by Unity Editor
static AutoSave()