Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
SizeConstraint
Used to constrain the scale of a GUI object.
Items
| Name | Value | Description |
|---|---|---|
| RelativeXY | 0 | The scale of X and Y are independent. |
| RelativeXX | 1 | The scale of X is shared with Y. |
| RelativeYY | 2 | The scale of Y is shared with X. |
RelativeXY
The scale of X and Y are independent.
| Field | Value |
|---|---|
| value | 0 |
RelativeXX
The scale of X is shared with Y.
| Field | Value |
|---|---|
| value | 1 |
RelativeYY
The scale of Y is shared with X.
| Field | Value |
|---|---|
| value | 2 |