A layout is a pre-arranged set of objects. It can represent a game level, menu or title screen. In other tools layouts may be referred to as scenes, rooms, frames or stages. They can be added, renamed and deleted from the Project Bar. Layouts are edited with the Layout View. Every layout has an associated event sheet which defines how the layout works.
Layouts contain a stack of layers. A layout must have at least one layer. Objects that appear on the screen do not belong directly to a layout - they belong to one of the layers in the layout.
Layouts do not have a background color. To set a background color, make the bottom layer opaque and set its background color. This can be done in the Layers Bar.
Layouts can also have effects applied, which affects all content appearing in the display.
Adding and removing layouts
To add a layout, right-click a layout folder (such as the root level Layouts) in the Project Bar and select Add layout.
To rename or remove a layout, right-click the layout itself in the Project Bar and select Rename or Delete.
The properties for a layout can be edited in the Properties Bar after clicking a space in the layout or selecting the name of the layout in the Project Bar.
- The name of this layout.
- Event sheet
- The associated event sheet that defines how this layout works. Event sheets can be shared between layouts using includes if you have a lot of similar events between layouts.
- The size, in pixels, of the layout area. If Unbounded scrolling is enabled, this still affects how much of the layout area is shown in the Layout View.
- Unbounded scrolling
- By default the game window cannot scroll past the edges of the layout. Enable this to allow unlimited scrolling in any direction, even past the edges of the layout.
- Add and edit effects that apply to the whole layout.
These properties only affect how the layout works in the editor, and don't change how it works at runtime.
- The size in pixels of extra padding space around the actual layout area that you can scroll around in. Some padding is often useful for conveniently editing the edges of the layout area.
- Show grid
- Whether to display a grid in the Layout View.
- Snap to grid
- Whether to snap all object placements and sizes to the grid in the Layout View.
- Grid size
- The size of the grid in pixels. This is only used if Show grid or Snap to grid is enabled.
- Grid offset
- By default the grid is aligned with the top and left edge of the layout area. Adding an offset shifts the grid horizontally or vertically so it is offset from the edges of the layout.
- Show collision polygons
- Display outlines of object's collision polygons in the Layout View. This can help arrange objects with regards to how they collide, rather than just how they appear.
- Show meshes
- Display outlines of object's meshes in the Layout View, if a mesh has been created. See Editing meshes in the Layout View manual entry for more details.
- Show translucent inactive layers
- Enable to display all layers other than the active layer at a reduced opacity. This can help identify the content on the active layer.
- Show hierarchy
- Display arrows over scene graph hierarchies pointing from parents to children. See Setting up a hierarchy in the Layout View manual entry for more details.
- Project properties
- A shortcut to view the project's properties.