Hazel

The Viewport

The viewport is your window into the scene. You fly the camera around in it, click things to select them, and drag the coloured handles to move them.

The Scene workspace with one object selected and the Move gizmo showing

Moving the camera

Hover the viewport, then:

InputWhat it does
Right-click and dragLook around
Hold right-click and press W A S DFly forward, left, back, right
Hold right-click and press E / QFly up / down
Shift + right-click dragPan (slide the view sideways and up/down)
Middle-click drag, or Alt + left-click dragOrbit around the point you are looking at
Scroll wheelZoom in and out
Hold Ctrl while looking, orbiting, flying or zoomingMove at a quarter of the speed, for fine work

Flying only works while the right mouse button is held. Let go and Q W E R go back to switching tools.

Your fly speed is the number beside the camera icon in the toolbar. Drag it or type a new value, or press ] to speed up and [ to slow down. Scrolling follows the same speed, so a camera slowed for close work also scrolls gently.

E and Q move more slowly near ground level, so you can settle onto the floor without overshooting it.

Handy camera keys

KeyWhat it does
FFrame the selection
AFrame the whole scene
HomeReset the camera
EndMove the camera's focus point to whatever is under the cursor
LLock the orbit point so panning leaves it where it is (flying unlocks it again)

The axis gizmo and the camera buttons

In the top-right corner of every viewport sits an axis gizmo: coloured balls for X, Y and Z. Click a ball to look straight down that axis. Drag the disc behind them to orbit.

Below it is a small column of four buttons:

ButtonWhat it does
Home (house)Reset the camera
Pan (hand)Press and drag to pan
Zoom (magnifier)Press and drag to zoom
GridTurn the floor grid on or off

Straight-on views

KeyView
Numpad 1Front (Ctrl for Back)
Numpad 3Right (Ctrl for Left)
Numpad 7Top (Ctrl for Bottom)
Numpad 5Switch between perspective and orthographic

The same views are in the toolbar's view menu (it reads Perspective until you pick another).

The toolbar

The strip along the top of the viewport holds everything you use while building a scene. It is made of small groups, each with a grip on its left: drag a grip to reorder the groups the way you like, and the order is remembered.

The viewport toolbar

From left to right, by default:

GroupWhat it holds
ToolsSelect, Move, Rotate, Scale, then Undo and Redo. A Delete button (bin) appears while something is selected.
SnapsThree snap steps: move (default 1), rotate (default 15 degrees) and scale (default 0.25)
ShapesA menu of ready-made shapes to drop into the scene
Camera speedHow fast the camera flies, in units per second
OptionsThe sliders icon: Display, Gizmos, Snap and Camera menus
View3D / 2D, and the mode (Select by default)
This viewportThe view angle menu (Perspective, Front, Back, Left, Right, Top, Bottom) and the World / Local switch (globe or cube icon)

On the far right are the shading menu and Maximize, which fills the window with this viewport. Click it again to put it back.

Groups that only make sense in one view hide in the other. In 2D the rotate and scale snaps, the shapes menu and the camera speed go away, and 2D tools take their place (see 2D).

While the game is running, the toolbar hides; only Play/Stop stays.

Tools

ToolKeyUse it to
SelectQClick things without a gizmo in the way
MoveWDrag along an axis or across a plane
RotateETurn around an axis
ScaleRResize, along one axis or all three

Some tools only show up when they apply. For example, terrain tools appear when a terrain is selected (see Terrain).

Snapping

Each snap step is an icon and a number. Click the icon to turn that snap on or off, and drag or type the number to set the step. Fractions are fine: 0.25 gives a quarter-unit grid. Press T to turn all three on or off at once.

All snaps start switched off.

More snapping lives under Options > Snap:

SettingWhat it does
ObjectsSnap to nearby objects within the distance you set
FloorSnap to a floor height you set
Edge SnapLine edges up while moving (Shift+T)
Scale from BottomScale from an object's base instead of its middle, so it stays standing on the ground (Alt+T)

World or Local

The globe/cube button beside the view menu decides which way the gizmo's handles point. World keeps them lined up with the scene. Local turns them with the object, which is what you want for nudging something along its own forward direction. Each viewport has its own switch.

The gizmo

Select an object and coloured handles appear on it. Drag a handle to move, rotate or scale along that axis. Drag an object that is already selected to slide it across the ground without aiming for a handle.

A selected crate with the Move gizmo

Transforming from the keyboard

You can also move things without touching a handle. Press a key, move the mouse, click to finish.

KeyWhat it does
GGrab (move)
RRotate
SScale
X / Y / ZLock to that axis
Shift + X / Y / ZLock to the plane that leaves out that axis
Numbers, ., -Type an exact amount
Enter or left-clickConfirm
Esc or right-clickCancel

Alt+D duplicates the selection and starts grabbing the copy straight away.

Selecting

What you doWhat happens
Click an objectSelect it
Ctrl + clickAdd it to, or remove it from, the selection
Shift + clickAdd it to the selection
Drag across empty spaceBox-select everything inside
Click empty spaceDeselect
EscDeselect

A click selects the part you clicked: the wheel of a car, not the whole car. To make a model select as one piece, right-click it in the Hierarchy and choose Edit > Select as One Object.

Locked objects (the padlock in the Hierarchy) cannot be clicked in the viewport. Your click goes through to whatever is behind them.

Right-click without dragging to get a list of everything under the cursor, nearest first, including parts hidden behind others and locked objects. Pick a row to select exactly that thing.

H hides the selection (press again to show it). Shift+H hides everything else.

Placing things on surfaces

KeyWhat it does
VMove the selection to the surface under the cursor
Page DownDrop each selected object straight down onto whatever is below it
Ctrl+VPaste copies onto the surface under the cursor

Each of these is one undo step.

Adding shapes

The shapes menu in the toolbar lists every built-in shape, grouped into Primitives, Blocks, Architecture, Stairs and ramps, Pipes and Props. Pick one and it appears at the centre of the scene. The menu stays open so you can add several.

The Shapes tab in the bottom panel shows the same shapes as picture tiles. Click a tile to add it, or drag it into the viewport to place it exactly where you want.

The shape library in the bottom panel, with tiles grouped by category and the size slider in its toolbar

New shapes arrive with a grid material, so you can judge their size before you have made any materials.

Dropping models and materials in

Drag a model from the Assets panel into the viewport and it lands on the surface under the cursor. A big model may take a moment: a box marks the spot and a Loading card shows its name until it arrives.

Drag a material onto an object to apply it.

Shading

The shading menu at the right end of the toolbar changes how the scene is drawn. It never changes the scene itself.

ModeWhat you see
WireframeJust the edges
SolidPlain clay shading, good for judging shapes
MaterialReal materials and lighting against a plain background
RenderedThe full picture, with sky, atmosphere and clouds

Alt+Z toggles wireframe and Alt+Shift+Z toggles lighting.

The options menu

The sliders icon opens four menus. Hover one to open it.

Display

SectionWhat is in it
VisualizationSwap every material for a debug view: Normals, Roughness, Metallic, Depth, UV Checker or Matcap. None brings the real materials back.
RenderMesh, Textures, Wireframe, Lighting, Shadows and Realtime
OverlaysThe floor Grid with - / + to make its squares smaller or bigger, Axis Gizmo, and Statistics

Realtime is off by default. With it off, the viewport only redraws when something changes, which keeps the rest of the editor quick in a heavy scene. Turn it on to watch things that move by themselves, such as animated shaders.

Statistics shows object, vertex and triangle counts in the bottom-left corner.

Gizmos

Switches for what the editor draws over your scene: the selection Bounding Box, Lights, Cameras, Camera Pivot, Scene Icons, Labels (names above objects, off by default), Game UI, the rig Skeleton, and physics Colliders (for the selection only, or always). Below the colliders are physics debugging views: Contacts, Velocities, Simulated Shapes, Sleeping Bodies and Queries.

Snap

The object and floor snapping described in Snapping.

Camera

Switch between Perspective and Orthographic, jump to a view angle, and tune how the camera feels: Look, Orbit, Pan and Zoom sensitivity, Invert Y Axis and Distance Relative Zoom. Reset to Defaults puts them back.

More than one viewport

You can have up to four viewports, each with its own camera and view angle. Add one with the + on any panel's tab bar (Viewport 2, Viewport 3, Viewport 4). The toolbar's shared controls live on the first viewport; the others keep their own tools, view angle and World/Local switch.

Camera Preview is a separate panel that shows what a selected camera sees.

If the viewport feels slow

  • Check that Options > Display > Realtime is off.
  • Lower Graphics Quality in Settings > Project > Rendering (Low, Medium or High; new projects start on Medium). The viewport and your exported game both use this setting.

When a quality level switches an effect off, that effect's card in the Inspector shows an amber warning triangle. Hover it to see why.