Hello,
I’m working a a custom EditorWindow which goals is to populate datas in a ScriptableObject.
public class GameDBEditorWindow : EditorWindow{
public GameDB gameDB;
...
...
}
public class public GameDB : ScriptableObject{
public string[] toolbarStrings = new string[] {"one","two","three"};
...
...
}
I do not write the code that create the ScriptableObject instance neither the code that save it when it’s modified - but those functions exist and work as expected.
If I do the following actions :
- Load the WindowEditor
- Save the assets using EditorUtility.SetDirty(this) and AssetDatabase.SaveAssets();
- The gameDB is correctly saved in the disk
- Add an entry in the toolbarString, let’s say “four”
- Save again
- The toolbar displays in the editor is not updated
- Closing the editor and re-open change nothing
Any idea why ? Thanks