Datatype · UserdataUDim2
userdatasince 0.5.4a-alpha
A two-dimensional value built from two UDim components (X and Y), used for the size and position of UI elements.
Properties
4| Name | Type | Access | Description |
|---|
| Height | UDim | read | The Y component, exposed as Height to match UI conventions. |
| Width | UDim | read | The X component, exposed as Width to match UI conventions. |
| Y | UDim | read | |
| X | UDim | read | |
Methods
1#UDim2:Lerp(goal: UDim2, alpha: number) → UDim2
since 0.5.4a-alpha
Returns a UDim2 interpolated between this value and goal by the fraction alpha.
Parameters
| goal | UDim2 | The UDim2 to interpolate towards. |
| alpha | number | The blend factor, between 0 and 1. |