Scripting the editor camera from with-in game

I usually work in a “2 Split” Layout that allows me to see both the Scene view and the Game view at the same time.

There are two or more locations in the scene that I would like to monitor while running the game in the editor, and was wondering if there was any way to have the Scene view (editor) camera jump to specific locations based on in-game events. Whether the camera moves to particular coords or simply targets (looks at) an object and frames it … either is fine.

Without this functionality, I need to search through the hierarchy to locate an object near my desired target area, click on it, and then move over to the scene to press F. I would like to automate this process.

While I’m new to Unity and don’t have an answer for you, I’ve recently thought that it’d be nice if the scene view allowed the User to name and store views.

So, interactively position the camera, and then store the view away under a User-defined name. Further, if we could switch between the stored views via User-assigned hotkeys, that might get you close to what you need and be useful outside your specific request.

Though your idea of switching the scene view cam based on in-game events would be cool too…

Jeff