Right now i’m doing essentially this:
public override void OnInspectorGUI()
{
if (Screen.width != storedWidth || Screen.height != storedHeight)
{
Refresh();
}
}
But this is super ugly and inefficient, it’s getting called every frame while the inspector is being moved and if you shake it around a lot it can really screw things up.
Is there an event I can register my Refresh() with so that it’s called only when the inspector is done being resized? Failing that is there a better way to do this?
Thanks!