Documentation

UI::GetScale

Function

float UI::GetScale()

Returns the current scale of the UI. This can be set by the user in the Openplanet settings. You might need this if you are working with numbers that represent pixels and want to support high UI scales.

Returns float