FGenericPlatformApplicationMisc::ConvertInchesToPixels

If we know or can approximate the pixel density of the screen we will convert the incoming inches to pixels on the device.

Windows
MacOS
Linux

References

Module

ApplicationCore

Header

/Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/GenericPlatformApplicationMisc.h

Include

#include "GenericPlatform/GenericPlatformApplicationMisc.h"

Source

/Engine/Source/Runtime/ApplicationCore/Private/GenericPlatform/GenericPlatformApplicationMisc.cpp

Syntax

static EScreenPhysicalAccuracy ConvertInchesToPixels
(
    float Inches,
    float & OutPixels
)

Remarks

If we know or can approximate the pixel density of the screen we will convert the incoming inches to pixels on the device. If the accuracy is unknown OutPixels will be set to 0.

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