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