Get Viewport Scale

Get Viewport Scale

Choose your operating system:

Windows

macOS

Linux

Gets the current DPI Scale being applied to the viewport and all the Widgets.

Target is Widget Layout Library

Get Viewport Scale
Return Value

Inputs

Outputs

Return Value
Float (single-precision)

Gets the current DPI Scale being applied to the viewport and all the Widgets.