UDPICustomScalingRule

Custom Scaling Rules for Slate and UMG Widgets can be implemented by sub-classing from this class and setting this rule to be used in your project settings.

Windows
MacOS
Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UDPICustomScalingRule

References

Module

Engine

Header

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

Include

#include "Engine/DPICustomScalingRule.h"

Syntax

class UDPICustomScalingRule : public UObject

Remarks

Custom Scaling Rules for Slate and UMG Widgets can be implemented by sub-classing from this class and setting this rule to be used in your project settings.

Functions

Name Description

Public function Virtual Const

float

 

GetDPIScaleBasedOnSize

(
    FIntPoint Size
)

Return the scale to use given 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