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.

AspectType

Used by UIAspectRatioConstraint.AspectType to control sizing behavior.

Items

NameValueDescription
FitWithinMaxSize0The object will be the maximum size possible within its own AbsoluteSize.
ScaleWithParentSize1The object's maximum size will be the size of the parent while still maintaining the aspect ratio.

FitWithinMaxSize

The object will be the maximum size possible within its own AbsoluteSize.

FieldValue
value0

ScaleWithParentSize

The object's maximum size will be the size of the parent while still maintaining the aspect ratio.

FieldValue
value1