OnHierarchyChange

Any way to find out why was OnHierarchyChange called?

It’s an editor function, and I want to know when the user adds or deletes an object from the scene, and also, which object was added/deleted.

So, is there any way to find that out? Other than iterating through all scene objects and comparing them to a previous state to see what has changed?

I think searching through the scene is the only way to go about this.