How-to
Lay out with frames and auto layout
Put pieces of a screen in a frame that lines them up in a row or a column, with even gaps.
Before you start
- Open the screen in the 2D editor, with the pieces to line up on it, such as three texts.
Steps
Click the first piece, then hold
Shiftand click the others.Press
Ctrl+Alt+G(⌘⌥Gon a Mac). A Frame goes round them and lines them up. In Layers, the frame has an → auto chip, with the pieces under it.With the frame selected, use Auto layout in the inspector:
- Direction: → for a row, ↓ for a column; ↵ wrap starts a new line at the frame's edge.
- Gap: the space between pieces. Padding: the space inside the frame's edges.
- Size: Hug contents (the frame fits its pieces) or Fixed.
- Align: where each piece sits across the row or column.
For each number, click its box, press
Ctrl+A(⌘A), type and pressEnter.

Check it worked
The pieces follow the frame's settings: with ↓ and a Gap of 20, Map, Bag and Log stand in a column, the same space apart. Selecting the frame shows its gaps and padding in pink on the canvas.
Good to know
- The pieces have no X and Y of their own while they're in the frame. To change their order, drag them in Layers or on the canvas.
- × next to Auto layout removes it.
See also
Checked against main 9bb38dc, 2026-12-03Report a problem with this page