When I close Unity, all the data that my EditorWindow is referencing reverts to an earlier state. The EditorWindow code is changing data on a GameObject in my scene. In my current test case, I’m basically deleting it all. I can see that it is gone on the object in the property inspector. The data is STAYING gone when I Play the game, which means it is surviving the move in and out of managed land, but for some reason, when I close and reload Unity, the data in the GameObject that my EditorWindow is manipulating reverts back to an earlier state.
The strange thing is that the earlier state has a lot of data that I added through the editor, so what was different then that caused THAT data to save? Very confused here.
Are you… saving the scene before exiting?