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
| Name | Value | Description |
|---|---|---|
| FitWithinMaxSize | 0 | The object will be the maximum size possible within its own AbsoluteSize. |
| ScaleWithParentSize | 1 | The 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.
| Field | Value |
|---|---|
| value | 0 |
ScaleWithParentSize
The object's maximum size will be the size of the parent while still maintaining the aspect ratio.
| Field | Value |
|---|---|
| value | 1 |