I'm using a custom editor for a ScriptableObject, and every time I restart Unity, almost all its data is reset (everything except an enum). I read 3 Unity Answers threads, and 2 forum threads, and so far what I know is I have to set the ScriptableObject as dirty using "EditorUtility.SetDirty()", however I have no idea where exactly to use this, or what to put in the brackets (if anything). I think I need to put it somewhere in the custom editor script, but that's about it. All the threads' answers are really vague, they all just say something along the lines of "use EditorUtility.SetDirty()", but give no specifics as to how or where to use it. I read the Unity manual/scripting API page, but that didn't help.