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 inches to pixels on the device. If the accuracy is unknown OutPixels will be set to 0.
| Name | ConvertInchesToPixels |
| 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 ConvertInchesToPixels
(
T Inches,
T2 & OutPixels
)