SGameLayerManager::SetUseFixedDPIValue

Function will instruct internal DPI computations to use a provided reference viewport size instead of the actual viewport size.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Slate/SGameLayerManager.h

Include

#include "Slate/SGameLayerManager.h"

Source

/Engine/Source/Runtime/Engine/Private/Slate/SGameLayerManager.cpp

Syntax

void SetUseFixedDPIValue
(
    const bool bUseFixedDPI,
    const FIntPoint RefViewportSize
)

Remarks

Function will instruct internal DPI computations to use a provided reference viewport size instead of the actual viewport size. After the DPI will be retrieved it will be scaled down with the ratio between the actual viewport size and the provided one. Check GetGameViewportDPIScale() for more information.

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