Custom settings

How does Unity support storing custom settings? I have a few singleton systems that I’d like to be able to set references to assets on in an inspector window. I’ve seen some extensions made custom editor windows for themselves and let you change settings there, but I can’t figure out where those settings would be saved. If static variables get changed by an editor window do they serialize, or do most extensions just manually save paths and settings to some sort of config file?

If they’re small, editor-only settings, store them in EditorPrefs.

If they’re for the project itself, use a ScriptableObject. Here’s a good tutorial on scriptable objects.

2 Likes

Perfect. ScriptableObject was just what I needed. Thanks!