So yea, there is a “Frame Selected” option (default hotkey ‘F’) which zooms the SceneView camera to the selected GameObject, but you are probably asking a different question.
Selection in the SceneView is cumbersome, that is true, and it would be my feedback towards Unity as well, to improve the selection mechanism. Currently, it cycles through all objects under the mouse cursor, which is really annoying in large scenes. Instead, I would propose some sort of selection menu like in Photoshop layers, where you context click and then it shows you a dropdown of all objects under the mouse.
Highlights around selected objects are already available. If you expand the SceneView’s Gizmos dropdown you can enable “Selection Outline”.
Additionally, I would call your idea “focus mode” or “selection lock”. You can already lock the inspector of the currently selection object with the lock icon at the top right of the inspector. This still allows you to select other objects, but the inspector stays the same.
I also agree that a focus mode can make sense for very specific setups, but the question would be if this is something everybody needs.
For the meantime, you can prototype this yourself with an editor window like this:
using UnityEditor;
using UnityEngine;
public class FocusModeWindow : EditorWindow
{
[MenuItem("Window/Focus Mode")]
public static void ShowWindow()
{
GetWindow<FocusModeWindow>("Focus Mode");
}
private GameObject focusedGameObject;
private void OnSelectionChange()
{
EditorApplication.delayCall += () =>
{
if (focusedGameObject != null)
{
Selection.activeGameObject = focusedGameObject;
}
};
}
private void OnGUI()
{
focusedGameObject = EditorGUILayout.ObjectField(
"Focused GameObject", focusedGameObject, typeof(GameObject), allowSceneObjects: true) as GameObject;
}
}
This window allows you to pick a GameObject and resets the selection to this object whenever is changes. It would be more elegant to block the selection change, but I didn’t investigate whether this is possible with the current API, however it’s a start and something to try out.