- Select manual -
The editor allows you to browse and manipulate all files in your game project in an efficient manner. Editing files brings up a suitable editor and shows all relevant information about the file in separate views.
The Defold editor is separated into a set of panes, or views, that display specific information.
- The Assets view (Project Explorer in editor 1)
- Lists all the files that are part of your project. Click and scroll to navigate the list. All file oriented operations can be made in this view:
Editor 1 looks different but works very much the same, only with less functionality.)
- Double click a file to open it in an editor for that file type.
- Drag and drop to add files from elsewhere on your disk to the project or move files and folders to new locations in the project.
- Right click to open a pop up menu from where you can create new files or folders, rename, delete, track file dependencies and more.
- The Editor view
- The center view shows the currently open file in an editor for that file type. All visual editors allows you to change the camera view:
- Pan: Alt + left mouse button.
- Zoom: Alt + Right button (three button mouse) or Ctrl + Mouse button (one button). If your mouse has a scroll wheel, it can be used to zoom.
- Rotate in 3D: Ctrl + left mouse button.
Panning in editor 1: Alt + Middle button (three button mouse) or Ctrl + ⌘ + Mouse button (one button mouse, Mac) or Ctrl + Alt + Mouse button (one button mouse, Windows/Linux). You can change the mouse type in the application preferences, under Defold / Scene Editor and Mouse Type.
Rotating in 3D is not possible in editor 1.
The menu Scene contains the tools to move, rotate and scale the currently selected object, options to frame the view to the current selection and to realign the camera.
There is a toolbar in the top right corner of the scene view where you find object manipulation tools: Move, Rotate and Scale.
- The Outline
This view shows the content of the file currently being edited, but in a hierarchial tree structure. The outline reflects the editor view and allows you to perform operations on your items:
- Click to select an item. Hold Shift or Option to expand the selection.
- Drag and drop to move items. Drop a game object on another game object in a collection to child it.
- Right click to open a pop up menu from where you can add items, delete selected items etc.
- The Properties view
This view shows properties associated with the currently selected item, like Position, Rotation, Animation etc, etc.
- The Console
This view shows any error output or purposeful printing that you do while your game is running. Alongside the console are tabs containing the Curve Editor which is used when editing curves in the particle editor, the Build Errors view that shows build errors, and the Search Results view that displays search results.
- The Changed Files view:
This view lists any files that has been changed, added or deleted in your project. By synchronizing the project regularly you can bring your local copy in sync with what is stored in the project Git repository, that way you can collaborate within a team, and you won’t lose your work if unfortune strikes. Some file oriented operations can be performed in this view:
- Double click a file to open a diff view of the file. Editor 2 opens the file in a suitable editor, just like in the assets view.
- Right click a file to open a pop up menu from where you can open a diff view, revert all changes done to the file, find the file on the filesystem and more (editor 2).
The Scene Editor is used to create and edit game objects with their components and collections.
- Selecting objects
Click on objects in the main window to select them. The rectangle surrounding the object in the editor view will highlight green to indicate what item is selected. The selected object is also highlighted in the Outline view.
You can also select objects by:
- Click and drag to select all objects inside the selection region.
- Click objects in the Outline view.
Hold Shift or ⌘ (Mac) / Ctrl (Win/Linux) while clicking to expand the selection.
- The move tool
To move objects, use the Move Tool. You find it in the toolbar in the top right corner of the scene editor, or by pressing the W key.
The selected object shows a set of manipulators (squares and arrows). Click and drag the green center square handle to move the object freely in screen space, click and drag the arrows to move the object along the X, Y or Z-axis. There arn also square handles for moving the object in the X-Y plane and (visible if rotating the camera in 3D) for moving the object in the X-Z and Y-Z planes.
- The rotate tool
To rotate objects, use the Rotate Tool by selecting it in the toolbar, or by pressing the E key.
This tool consists of four circular manipulators. An orange manipulator that rotates the object in screen space and one for rotation around each of the X, Y and Z axes. Since the view is peripendicular to the X- and Y-axis, the circles only appear as two lines crossing the object.
Currently, sprite components can not be individually scaled in the editor, you have to scale the game object holding the sprite. Sprites do, however, support runtime free-form scaling. See the 2D Graphics documentation for details.
- The scale tool
To scale objects, use the Scale Tool by selecting it in the toolbar, or by pressing the R key.
This tool consists of a set of square handles. The center one scales the object uniformly in all axes (including Z). There also one handle for scaling along each of the X, Y and Z axes and one handle for scaling in the X-Y plane, the X-Z plane and the Y-Z plane.