# Controls and Keyboard Shortcuts

## Camera Controls

The Editor's camera is controlled with the mouse and keyboard.

| Operation    | Controls                                                         |
| ------------ | ---------------------------------------------------------------- |
| Orbit        | Left Mouse Button + Drag                                         |
| Pan          | Middle Mouse Button + Drag<br />SHIFT + Left Mouse Button + Drag |
| Look Around  | Right Mouse Button + Drag                                        |
| Zoom / Dolly | Mouse Wheel                                                      |
| Move         | W-A-S-D                                                          |
| Move (fast)  | SHIFT + W-A-S-D                                                  |

## General Mouse Controls

| Operation                                              | Controls                  |
| ------------------------------------------------------ | ------------------------- |
| Select Entity                                          | Left Mouse Button         |
| Translate / Rotate / Scale Entity (according to gizmo) | Left Mouse Button + Drag  |

## General Modifier Keys

| Operation                                               | Controls                               |
| ------------------------------------------------------- | -------------------------------------- |
| Toggle Editor's Snap setting while operating gizmo      | Hold SHIFT while dragging the Entity   |
| Do not preserve the Entity's transform when reparenting | Hold CTRL when you reparent the Entity |

## Keyboard Shortcuts

Note that on a Mac, CMD should be used instead of CTRL.

| Operation             | Description                                                          | Keyboard Shortcut              |
| --------------------- | -------------------------------------------------------------------- | ------------------------------ |
| Launch                | Launch the scene in a new tab                                        | CTRL + ENTER                   |
| New Entity            | Creates a new entity as a child of the currently selected entity     | CTRL + E                       |
| Duplicate Entity      | Duplicates the selected entity and all children                      | CTRL + D                       |
| Rename Entity / Asset | Focuses on name field of the selected entity or asset                | N or F2                        |
| Copy Entity / Asset   | Copy the current entity/asset selection                              | CTRL + C                       |
| Paste Entity / Asset  | Paste copied entity/asset under the currently selected entity/folder | CTRL + V                       |
| Delete                | Delete the current selection                                         | DELETE<br />CTRL + BACKSPACE   |
| Frame Selection       | Focus on the current entity selection in the 3D view                 | F                              |
| Translate             | Activate the translate gizmo in the 3D view                          | 1                              |
| Rotate                | Activate the rotate gizmo in the 3D view                             | 2                              |
| Scale                 | Activate the scale gizmo in the 3D view                              | 3                              |
| World / Local         | Switch between local and world space gizmos                          | L                              |
| Toggle All Panels     | Hides or shows all the panels to maximize the 3D view                | SPACE                          |
| Bake                  | Re-bake lighting using the [Run-time Lightmapper](https://developer.playcanvas.com/user-manual/graphics/lighting/runtime-lightmaps.md)                 | CTRL + B                       |
| Previous Selection    | Select previously selected items                                     | SHIFT + Z                      |
| Undo                  | Undo the last action                                                 | CTRL + Z                       |
| Redo                  | Redo the last action                                                 | CTRL + Y<br />CTRL + SHIFT + Z |
| How do I...?          | Toggle search toolbar for mini-tutorials                             | CTRL + SPACE                   |
| Show Controls         | Display the Editor controls                                          | SHIFT + ?                      |
