Hi. I had wrote a custom inspector for some class
Container. This class contains an array (public) of serializable class
ContainerItem. From my custom inspector I vary this array, and if some changes to this array applied I use
This works just fine, items added through inspector are there on playmode and after. But. But if I add item and close Unity changes not saved. And if I add item and click Ctrl+S (although unity not saying there were changes on scene), then item is saved after reset.
I’m not too experienced with custom inspectors and serialization and whatewer. Why unity not saying there are changes at scene to save? How to force editor to save scene or to track changes?
I just need it at least to remind me to save changes.