The viewport window is an interactive interface used for selecting, positioning, and modifying various types of entities and components within the current scene.
There are two modes for navigating the scene: standard mode and flight mode. Standard mode rotates around a central viewpoint, while flight mode is suitable for browsing large scenes, allowing the scene camera to move forward, backward, left, right, up, and down in 3D space.
Mode | Operation | Shortcut Keys |
---|---|---|
Standard Mode | Orbit | alt + left mouse button |
Pan | alt + command + left mouse button, or press the mouse scroll wheel | |
Zoom | alt + control + left mouse button, or scroll the mouse wheel, or swipe with two fingers on the trackpad | |
Flight Mode | Orbit around camera | alt + right mouse button |
Move forward | Up arrow key, or right mouse button + W | |
Move backward | Down arrow key, or right mouse button + S | |
Move left | Left arrow key, or right mouse button + A | |
Move right | Right arrow key, or right mouse button + D | |
Move up | Right mouse button + E | |
Move down | Right mouse button + Q | |
Change flight speed | Right mouse button + mouse scroll wheel |
The toolbar is located at the top of the viewport window. Hovering over each item will display its shortcut keys or description.
Icon | Name | Description | Shortcut Keys |
---|---|---|---|
![]() | Drag | Drag the view | |
![]() ![]() ![]() | Move Rotate Scale | Transform operations on selected entities | W E R |
![]() | Rectangle Edit Tool | Drag and scale sprites, GUI elements | T |
![]() ![]() | Pivot Point/Anchor | Toggle the anchor point of selected entities | |
![]() ![]() | Local/Global Coordinates | Toggle the coordinate system of selected entities | |
![]() | Focus | Focus the scene camera on the selected entity | F |
![]() | Scene Camera | The scene camera menu includes options for configuring the scene camera, mainly used to solve the issue of clipping planes being too far or too close, causing objects to be invisible. These adjustments do not affect entities with camera components in the scene. | |
![]() | Settings | The settings menu includes options for adjusting auxiliary displays in the view, such as grids, auxiliary icons (graphics associated with specific components in the scene, including cameras, directional lights, point lights, spotlights), and auxiliary wireframes. | |
![]() ![]() | Scene Camera Type | Toggle between perspective/orthographic camera | |
![]() ![]() | Mode | Easily toggle between 2D/3D scene modes. In 2D mode, navigation components, orthographic/perspective switching are disabled, and orbiting in navigation is no longer effective. | |
![]() | Fullscreen/Restore | Maximize the viewport window, minimize hierarchy, assets, and inspector | |
![]() | Play | Play all particles and animations in the scene | |
![]() | Screenshot | Take a snapshot of the current scene. Only user-created entities in the scene are displayed; auxiliary display tools like icons, grids, and gizmos are not included. After taking a screenshot, it will be used as the project thumbnail on the homepage. |
Attribute | Description | Default Value |
---|---|---|
Field of View (FOV) | The field of view of the scene camera | 60 |
Dynamic Clipping | If enabled, the near and far clipping planes of the scene camera will be automatically calculated. | on |
Near Plane | Manually adjusts the nearest point relative to the scene camera | Hide when dynamic clipping is checked |
Far Plane | Manually adjusts the farthest point relative to the scene camera | Hide when dynamic clipping is checked |
Smooth | If enabled, the camera's movement, rotation and rotation will be smoother | on |
Ease | If enabled, the camera will ease at the beginning and end of the tour. | on |
Acceleration | If enabled, the camera's roaming speed will be increased at a fixed ratio during roaming. Otherwise, it will always move at the set speed. | On |
Speed | The movement speed of the camera in flight mode | 10 |
Attribute | Description |
---|---|
Grid | Whether the grid in the view is displayed |
3D Icons | Whether auxiliary icons will increase or decrease as the camera moves closer or further away |
Navigation Gizmo | Displays the current direction of the scene camera and allows for quick modifications of the view (orthographic/perspective) via mouse operations. It appears in the lower-right corner of the screen when enabled. |
Outline Display | Whether to show an outline when an entity is selected. The selected entity's outline is orange, and the child node outlines are blue. |
Camera | Whether to show the frustum auxiliary function when the camera node is selected |
Light | Whether to display light auxiliary lines when selecting a light source node |
Static Collider | Displays the shape of static colliders |
Dynamic Collider | Displays the shape of dynamic colliders |
Emission Shape | Displays the shape of particle emitters |
When an entity with a camera component is selected, a real-time preview of that camera is displayed in the lower-left corner of the viewport window. This helps users adjust the camera and scene position in real-time. The preview window can be dragged, locked, and switched to different device aspect ratios.
Attribute | Description |
---|---|
1. Drag | Freely drag the preview window |
2. Position | Position the camera in the scene |
3. Switch Aspect Ratio | Switch to different device and aspect ratio windows |
4. Lock | Lock the camera preview window |
In the hierarchy tree, objects containing camera components can directly synchronize the relevant properties of the scene camera in the view, facilitating position and view angle adjustments.