Skip to content

Instantly share code, notes, and snippets.

View cavey79's full-sized avatar

Radu Muresan cavey79

View GitHub Profile
@cavey79
cavey79 / AutosaveOnRun.cs
Created August 14, 2018 20:21
Unity Auto-Save On Run
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine.SceneManagement;
[InitializeOnLoad]
public static class AutosaveOnRun
{
static AutosaveOnRun()
{
EditorApplication.playModeStateChanged += LogPlayModeState;