Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
UIFlexAlignment
In a UIListLayout flex layout, specifies how to distribute extra horizontal space in a HorizontalFlex layout or vertical space in a VerticalFlex layout.
Items
| Name | Value | Description |
|---|---|---|
| None | 0 | No flex behavior; siblings maintain their defined width or height. |
| Fill | 1 | Siblings resize to fill the entire parent container, overriding their defined width or height. |
| SpaceAround | 2 | Siblings maintain their defined width or height. Equal spacing is added on both sides of each sibling. |
| SpaceBetween | 3 | Siblings maintain their defined width or height. Equal spacing is added between siblings, but no additional space is added around siblings. |
| SpaceEvenly | 4 | Siblings maintain their defined width or height. Equal spacing is added both between and around siblings. |
None
No flex behavior; siblings maintain their defined width or height.
| Field | Value |
|---|---|
| value | 0 |
Fill
Siblings resize to fill the entire parent container, overriding their defined width or height.
| Field | Value |
|---|---|
| value | 1 |
SpaceAround
Siblings maintain their defined width or height. Equal spacing is added on both sides of each sibling.
| Field | Value |
|---|---|
| value | 2 |
SpaceBetween
Siblings maintain their defined width or height. Equal spacing is added between siblings, but no additional space is added around siblings.
| Field | Value |
|---|---|
| value | 3 |
SpaceEvenly
Siblings maintain their defined width or height. Equal spacing is added both between and around siblings.
| Field | Value |
|---|---|
| value | 4 |