Navigation
API > API/Runtime > API/Runtime/ApplicationCore > API/Runtime/ApplicationCore/FGenericPlatformApplicationMisc
Description
If we know or can approximate the pixel density of the screen we will convert the incoming pixels to inches on the device. If the accuracy is unknown OutInches will be set to 0.
| Name | ConvertPixelsToInches |
| Type | function |
| Header File | /Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/GenericPlatformApplicationMisc.h |
| Include Path | #include "GenericPlatform/GenericPlatformApplicationMisc.h" |
template<typename T, typename T2, std::enable_if_t<(std::is_floating_point_v< T > &&std::is_floating_point_v< T2 >), int >>
static EScreenPhysicalAccuracy ConvertPixelsToInches
(
T Pixels,
T2 & OutInches
)