hello folks, I’m having trouble saving scriptable objects’ data through an editor script, this is what I’m using to save them atm
public override void OnInspectorGUI() { if (GUILayout.Button("Force Save")) { AssetDatabase.Refresh(); EditorUtility.SetDirty(target); AssetDatabase.SaveAssets(); } }
however, whenever I restart the editor all the data is lost. Does anyone know what I should do?