PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

Scale

UIScale

float

The Scale property determines the multiplier used on the parent UI element’s GuiBase2d/AbsoluteSize. When set to 0.5, an AbsoluteSize of {0, 200}, {0, 50} becomes {0, 100}, {0, 25}. Similarly, when set to 2, such an AbsoluteSize would become {0, 400}, {0, 100}.


Code Samples


UI Scale Demo

This code sample creates some images of a lock and scales them using UIScale. It lays them out suing a UIListLayout.