UIScale
An object that acts as a multiplier for the size of the parent UI element's scale.
Memory category | Instances |
---|
Member index 1
Description
A UIScale object simply contains a number that is used to multiply the GuiBase2d.AbsoluteSize of the parent UI element. This number is stored in UIScale.Scale.
History 5
Members 1
Scale
Type | Default | |
---|---|---|
float | 1 |
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}.
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |