1 min read

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

NameValueDescription
Width0The X axis.
Height1The Y axis.

Width

The X axis.

FieldValue
value0

Height

The Y axis.

FieldValue
value1