To rotate around a specific object in the Unity editor, select the object you want to orbit and then press the 'F' key to focus on it. After that, hold down the Alt/Option key and click and drag with the Left Mouse Button (LMB). This will make the camera orbit around the focused object.
Here's a breakdown of the process and some additional tips:
-
Select the Object: First, ensure the object you want to orbit is selected in the Hierarchy or Scene view.
-
Focus on the Object (Press 'F'): Pressing the 'F' key ("Frame Selected") will center the Scene view's camera on the selected object. This sets the pivot point for the rotation.
-
Orbit Using Alt/Option + Left Mouse Button (LMB): Hold down the Alt key (Option key on macOS) and click and drag with the left mouse button in the Scene view. This will orbit the camera around the object that you have focused on.
Why This Works:
Unity's Scene view camera normally rotates around the center of the scene. When you press 'F', you're effectively changing the camera's "pivot point" to be the selected object. The Alt/Option + LMB combination then tells the camera to orbit around that new pivot.
Troubleshooting:
-
Nothing Happens When I Press 'F': Make sure you have an object selected in the Hierarchy or Scene view.
-
The Rotation is Jerky or Unresponsive: Try adjusting the "Move Speed" and "Rotation Speed" settings in the Scene view's toolbar. These settings affect how quickly the camera moves and rotates. You can also adjust these values directly in the Editor settings.
By using this simple technique, you can easily and precisely examine your objects from all angles within the Unity editor.