EditorApplication.hierarchyWindowChanged - Unity スクリプトリファレンス

A callback to be raised when an object in the hierarchy changes.Each time an object is (or a group of objects are) created, renamed, parented, unparented or destroyed this callback is raised.