Game dev
Saved & recent

Automatic UI layout

Related terms: layout container, flow layout, minimum size, padding, anchors, localization

Arranging interface elements using layout rules instead of individually assigned positions. A parent can place its children in a row, column or grid, sharing available space while respecting minimum sizes and padding. A flow layout can wrap items onto another line when the container becomes too narrow.

This helps menus adapt to longer translations, larger text and different screen sizes. Anchors describe an element’s relationship to its parent’s bounds; automatic layout also coordinates siblings with one another. Choose rules that preserve reading order and usable controls, rather than simply shrinking everything until it fits.

Further reading
Godot: layout containers
New Continue Options one row New Continue Options wrapped row same control size
All three controls keep the same width and height. The narrower container fits only two per row, so Options moves to the next line.

View in the full Game dev collection