Scriptable Singleton in Unity: Saving Persistent Data

Jared Amlin
Level Up Coding
7 min readJan 9, 2024

--

Disclaimer: This uses the UnityEditor namespace, which gets removed in a build. This is an editor tool only.

Being able to save persistent data in game development is an important feature, especially when you want to retain local high scores, or players that continuously gain experience and level up. The last thing you want is for that data to reset back the default…

--

--

I am an artist and musician, that is currently diving headfirst into game development with C# and Unity3D.