Skip to content

Instantly share code, notes, and snippets.

View ScriptableObjectWithId.cs
// Reference: https://github.com/Bunny83/UUID/blob/master/UUID.cs
using System;
using System.Collections.Generic;
using System.Globalization;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
@dustingraham
dustingraham / AutoSave.cs
Last active Feb 3, 2021
Auto-Save open unity scenes when launching play mode, or every five minutes.
View AutoSave.cs
#if UNITY_EDITOR
using System;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
[InitializeOnLoad]
public class AutoSave
{
private static DateTime nextSaveTime;