A replacement for Unity Editor "Frame selected" (F) command

Hello,

I am working on an alternative version of Unity Scene View “Frame Selected” (hotkey F) command. “Frame Selected” is great for quickly jumping to objects in the scene we want to edit, but, especially in complex scenes, it sometimes fails to properly frame the object, for example putting the editor scene view camera behind a wall or another object - or putting the scene view camera too far - so extra actions are needed before one can work with the selected object.

Our version, while basically working as the built-in command (e.g. not changing the scene view camera orientation) tries to do a better job in providing a scene view that allows to work with the selected object.

In the video below, you can see a comparison of the built-in “Frame Selected” command (on the left part of the video) and our version (on the right part of the video. We select a few objects, and, for each one, first press the F command in the left scene view, so that Unity “Frame Selected” command is run, and then move to the right scene view, and press H to activate our version. As you can see, in the few situations shown in the video, our version is able to provide an unoccluded view of the selected object where the built-in version fails to do so.

I would appreciate any feedback - e.g. do you think our work is really useful for the modeler?

Thanks!

Update: we have just released the source code of the C# library that allows one to compute camera position and angles to frame an arbitrary number of targets.
See this forum post for more info, or head directly to the Github repository to grab the source code.

2 Likes