Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
DominantAxis
Used by UIAspectRatioConstraint.DominantAxis to specify which axis is used when setting the new size of the GUI element.
Items
| Name | Value | Description |
|---|---|---|
| Width | 0 | The X axis. |
| Height | 1 | The Y axis. |
Width
The X axis.
| Field | Value |
|---|---|
| value | 0 |
Height
The Y axis.
| Field | Value |
|---|---|
| value | 1 |