Hi, I have a builder script that I run in editor mode to set player settings.
My issue is this:
I have a script in a game object in the main scene.
I need to change a property value from that script.
I did this from my builder script
AssetDatabase.StartAssetEditing();
AppManager.Instance.appId = appId;
AssetDatabase.StopAssetEditing();
AssetDatabase.SaveAssets ();
Note: AppManager is a MonoBehavior - Singleton Class that is added as component in the game object.
Note 2: This AppManager class is used in the project so I can set ExecuteInEditMode tag
I see in the editor that the property was changed to the value.
But, when I run the project (pressed play mode button) the value of that property is reverted automatically to the previous value. Any change was taken
I hope you can understand me.
Any help?
Thanks