I am fairly certain that the behaviour of Unity is to ignore all changes made to values during after runtime. So, if I have an int of 5 set in the inspector, click play, it changes to 12, then stop the game, the value should go back to 5.
This is happening for me all the time. I have a list of Serializable classes that represent my levels for my game (short puzzle game). I save this list as my game’s persistent data. The problem though is that if I play test a level the values don’t reset to 0 once I stop testing in the editor. Is this a bug or does this have something to do with me serializing the values?