Version: 2019.1
The Scene view
Positioning GameObjects

Scene view navigation

The Scene view has a set of navigation controls to help you move around quickly and efficiently.

Гизмо сцены

The Scene Gizmo is in the upper-right corner of the Scene view. This displays the Scene view Camera’s current orientation, and allows you to quickly modify the viewing angle and projection mode.

The Scene Gizmo has a conical arm on each side of the cube. The arms at the forefront are labelled X, Y and Z. Click on any of the conical axis arms to snap the Scene view Camera to the axis it represents (for example: top view, left view and front view). You can also right-click the cube to bring up a menu with a list of viewing angles. To return to the default viewing angle, right-click the Scene Gizmo and click Free.

You can also toggle Perspective on and off. This changes the projection mode of the Scene view between Perspective and Orthographic (sometimes called ‘isometric’). To do this, click the cube in the centre of the Scene Gizmo, or the text below it. Orthographic view has no perspective, and is useful in combination with clicking one of the conical axis arms to get a front, top or side elevation.

A Scene shown in Perspective mode (left) and Orthographic mode (right)
A Scene shown in Perspective mode (left) and Orthographic mode (right)
The same Scene viewed in top and front view, in orthographic mode
The same Scene viewed in top and front view, in orthographic mode

(Scene above from BITGEM)

If your Scene view is in an awkward viewpoint (upside-down, or just an angle you find confusing), Shift-click the cube at the centre of the Scene Gizmo to get back to a Perspective view with an angle that is looking at the Scene from the side and slightly from above.

Click on the padlock on the top right of the Scene Gizmo to enable or disable rotation of the Scene. Once Scene rotation is disabled, right-clicking the mouse pans the view instead of rotating it. This is the same as the Hand tool (see Hand tool, below).

Важно отметить, что в 2D режиме гизмо сцены не отображается, потому что вид представлен только в XY плоскости.

Жесты в Mac на трекпаде

В Mac с трекпадом, можно тянуть двумя пальцами для масштабирования вида.

You can also use three fingers to simulate the effect of clicking the arms of the Scene Gizmo: drag up, left, right or down to snap the Scene view Camera to the corresponding direction. In OS X 10.7 “Lion” you may have to change your trackpad settings in order to enable this feature:

  • Open System Preferences and then Trackpad (or type trackpad into Spotlight).
  • Click into the “More Gestures” option.
  • Click the first option labelled “Swipe between pages” and then either set it to “Swipe left or right with three fingers” or “Swipe with two or three fingers”.

Moving, orbiting and zooming in the Scene view

Moving, orbiting and zooming are key operations in Scene view navigation. Unity provides several ways to perform them for maximum accessibility:

Перемещение с помощью стрелок

Для перемещения по сцене можно использовать клавиши со стрелками. Клавиши вверх и вниз перемещают камеру вперед и назад в том направлении, в которое она смотрит. Клавиши влево и вправо поворачивают камеру в стороны. При использовании стрелок, зажмите клавишу Shift для ускоренного перемещения.

Использование инструмента Hand (рука)

Когда выбран инструмент Hand (быстрая шлавиша: Q), доступны следующие элементы управления мышью:

Move: Click-drag to drag the Camera around.

Orbit: Hold Alt, and left-click and drag to orbit the Camera around the current pivot point. This option is not available in 2D mode, because the view is orthographic.

Zoom: Hold Alt, and right-click and drag to zoom the Scene view. On Mac you can also hold Control, and left-click and drag instead.

Можно зажать клавишу Shift, чтобы увеличить скорость перемещения и масштабирования.

Режим полета

Use Flythrough mode to navigate the Scene view by flying around in first-person, similar to how you would navigate in many games.

  • Щелкните и удерживайте правую кнопку мыши.
  • Теперь вы можете двигать вид используя мышь, и использовать клавиши WASD для перемещения влево/вправо вперед/назад, и клавиши Q и E для перемещения вверх и вниз.
  • Удержание Shift ускорит перемещение.

Режим полета разработан для Режима Перспективы. In Изометрическом режиме, удерживая ПКМ и двигая мышь, вы можете совершать движение камеры по орбите.

Note that Flythrough mode is not available in 2D mode. Instead, holding the right mouse button down while moving the mouse pans around the Scene view.

Camera speed

To change the current speed of the Camera in the Scene view, click the Camera icon in the toolbar. In Flythrough mode you can change the Camera speed while moving around the Scene. To do this, use the mouse scroll wheel or drag two fingers on a trackpad.

For more information, see the documentation on Camera settings.

Movement shortcuts

For extra efficiency, all of these controls can also be used regardless of which transform tool is selected. The most convenient controls depend on which mouse or track-pad you are using:

|*Действие** |3-х кнопочная мышь |2-х кнопочная мышь или трекпад |Mac с однокнопочной мышью или трекпадом | |:—|:—|:—|:—| |Move (Перемещение) |Hold Alt+middle mouse button, then drag |Удерживайте Alt-Control_ двигайте мышь с зажатой кнопкой для перемещения. |Удерживайте Alt-Command и двигайте мышью с зажатой кнопкой для перемещения. | |\ Недоступно в режиме 2D. |Hold Alt+left-click, then drag |Hold Alt+left-click, then drag |Hold Alt+left-click, then drag | |Масштабирование |Use the scroll wheel, or hold Alt+right-click, then drag |Зажмите Alt и ПКМ. |Use the two-finger swipe method to scroll in and out, or hold Alt-Control+left-click, then drag | | Change speed (only available in Flythrough mode)| Use the scroll wheel while moving. | Drag with two fingers while moving. | Drag with two fingers while moving. |

Centering the view on a GameObject

To center the Scene view on a GameObject, select the GameObject in the Hierarchy, then move the mouse over the Scene view and press F. This feature can also be found in the menu bar under Edit > Frame Selected. To lock the view to the GameObject even when the GameObject is moving, press Shift+F. This feature can also be found in the menu bar under Edit > Lock View to Selected.

  • The Scene Gizmo is secretly known as the Tetraxial Perspectagon.

  • 2019–02–08 Page amended with limited editorial review

  • Scene view Camera settings added in 2019.1

The Scene view
Positioning GameObjects
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。