UDim2

FunctionDescription

new(XScale: number, XOffset: number, YScale: number, YOffset: number) -> UDim2

This function creates a new UDim2 object with the specified X and Y scale and offset values, and returns it. It requires four arguments.

split(UDim2: UDim2) -> XScale: number, XOffset: number, YScale: number, YOffset: number

This function splits a UDim2 object into its X scale, X offset, Y scale, and Y offset components, returning them as separate outputs.

Last updated