I’m checking for whether doorways in my game are obstructed using raycasts. This isn’t done at runtime but rather while in the Editor, and I’d like to make a script to automatically do that every time a GameObject in the scene is moved or rotated, as it could potentially have changed the state of obstruction. The reason this isn’t done at runtime is because it’s related to a tool for level designers on the project to use while designing the level in the editor.
I’ve tried looking in the documentation for an event that I can subscribe to that gets called whenever a change is made in the Scene, but the closest I could find was EditorApplication.hierarchyChanged which doesn’t get called when objects are simply moved or rotated.