Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UDPICustomScalingRule
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/DPICustomScalingRule.h |
Include | #include "Engine/DPICustomScalingRule.h" |
Syntax
UCLASS (Abstract, MinimalAPI)
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
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
float | GetDPIScaleBasedOnSize
(
FIntPoint Size |
Return the scale to use given the size of the viewport. |