Datatype · Userdata

UDim2

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
NameTypeAccessDescription
HeightUDimread

The Y component, exposed as Height to match UI conventions.

since 0.5.4a-alphaRoblox ↗
WidthUDimread

The X component, exposed as Width to match UI conventions.

since 0.5.4a-alphaRoblox ↗
YUDimread
since 0.5.4a-alphaRoblox ↗
XUDimread
since 0.5.4a-alphaRoblox ↗

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

goalUDim2

The UDim2 to interpolate towards.

alphanumber

The blend factor, between 0 and 1.