Editor Window saving data.

Hey guys I am working on a simple editor. Whenever i close my editor window all the data gets lost, i want to have an easy of saving it.

EditorPrefs; they work the same way as PlayerPrefs if you’ve used them before:

1 Like

Well i did figure it out but it was abit more then that
http://blogs.unity3d.com/2012/10/25/unity-serialization/

Use ScriptableObject.

How? I can’t seem to find an example of this

If you need the data purely in the editor:
https://docs.unity3d.com/2020.1/Documentation/ScriptReference/ScriptableSingleton_1.html

2 Likes