UDPICustomScalingRule::GetDPIScaleBasedOnSize

Return the scale to use given the size of the viewport.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/DPICustomScalingRule.h

Include

#include "Engine/DPICustomScalingRule.h"

Source

/Engine/Source/Runtime/Engine/Private/DPICustomScalingRule.cpp

Syntax

virtual float GetDPIScaleBasedOnSize
(
    FIntPoint Size
) const

Remarks

Return the scale to use given the size of the viewport.

Returns

The Scale to apply to the entire UI.

Parameters

Parameter

Description

Size

The size of the viewport.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss