I'm creating a utility library to simplify GameObjects management. The problem is that when I store GameObjects in a script, after editing sources and going back to Unity's window, every GameObject is cleared from the different scripts, so I have to update them all.
For the moment, I'm checking if a GameObject exists in the script in the Update() function, and gather it back when missing. But that is a bit heavy for nothing.
The best would be a OnEditorRefresh() function to override, which is called each time Unity refresh its cached GameObject references (after the little freeze when it updates from the recently modified scripts). Would anything like that exist ?