Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformMisc
Description
Returns the current device temperature in degrees Celcius. Keep in mind that no specific temperature probe position can be assumed. It will vary across platforms and devices. Inspecting the platform implementation might yeild more information about this stat or more detailed platform specific stats. -1.0 is returned for a platform that does not support this measure at all. A platform that does support it, but is not currently providing data may return -1 or 0. Theoretically -1 and 0 could be real temperatures...
| Name | GetDeviceTemperature |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h |
| Include Path | #include "GenericPlatform/GenericPlatformMisc.h" |
| Source | /Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp |
static float GetDeviceTemperature()