AbsoluteSize (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Flurite No edit summary |
>Flurite No edit summary |
(No difference)
|
Revision as of 20:18, 26 January 2012
Local: This item should be used with a LocalScript in order to work as expected in online mode.
![]() | |
Property | Vector2 AbsoluteSize |
Description | Size of the render window in pixels. |
Member of | GuiBase |
Limitations
- Takes 1.3 seconds to initiate on join, and a third of a second after respawning.
- Only LocalScripts see the true absolute size. For normal scripts, the AbsoluteSize is Vector2.new(0, 0).
- The AbsoluteSize property is often greater than it's AbsolutePosition counterpart by less then a decimal, even though their UDim2 position and sizes may be the same. For example, if you have a GUI with a position of UDim2.new(0, 10, 0, 10) and a size of UDim2.new(0, 10, 0, 10), the AbsolutePosition will be 7, while the AbsolutePosition will be about 7.8619175. A good way to compare them properly is to perform the math.floor() function on the AbsoluteSize.