GameMaker 2024.11 and later has UI layers: the project's roomui/RoomUI/RoomUI.yy, made of layers, flex panels (laid out like CSS flexbox) and items in them (instances, text, sprites). Every room has them. The UI editor reads and writes this file, so what you edit here is what GameMaker shows and builds; what you don't change keeps its bytes.
- Palette (under the hierarchy): UI Layer, Flex Panel, Text, Sprite, Instance. Click to add to the selected layer or panel, or drag onto the canvas or onto a row. New panels go after the panels already there; text and instances go first (drawn on top); sprites go last (a background). Pick a sprite's or an instance's asset in the inspector.
- Canvas: the layers are drawn over the controls, as the game lays them out (the UI Layers checkbox, or L, hides them). Click a node to select it (an item stretched across its panel selects the panel; ⌘-click selects the item). Drag a panel onto another panel to put it inside, or onto the edge of a sibling to put it before or after; drag an item to move its offset. ⌫ deletes, arrows nudge an item, ⌘↑ selects the parent.
- Hierarchy: the layers, panels and items in order. In GameMaker the first child is drawn on top. Drag rows to reorder or move them.
- Inspector: a layer's or panel's Direction, Justify, Align, Wrap, gaps and padding; a panel's width and height (px, % or auto), Align Self, grow and shrink, position (relative or absolute) and margin; an item's anchor in its panel, stretch, offset and scale; text and font; the sprite or object. Visible at the start off hides a layer until
layer_set_visibleshows it. - Delete a layer, panel or item: select its row and press ⌫, click the hierarchy's trash button, or right-click > Delete (what is inside goes too).
- Shown in the game: GameMaker's switch for all UI layers (the RoomUI's own visible). Off, the game makes none of them.
- Screen previews lay the UI layers out at the other sizes too.
- From a room: the room's Layers panel lists the UI layers under UI Layers (N) (double-click one to edit it here), and Add Layer > UI Layer… there opens this editor with a new layer selected and Shown in the game on, in one undo step.
Every change is one undo step. Renaming or deleting an instance also updates rooms that list it in their creation order.
Related topics
Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.