ui.getScale
Get the current system DPI scale factor.
none
scale number
ui.messageBox("Scale: " .. ui.getScale())
Return value is based on current system DPI scale. A scale of 100% will return 1.0, 125% will return 1.25 etc.
Generated on the 26 June 2024 at 22:01:29 (UK Time)