Daily Unreal Column #73 - FPlatformMisc
One benefit of using Unreal Engine is its support for multiple platforms. It is worth knowing that Unreal has a generic wrapper for a lot of OS specific functionality.
FPlatformMisc
is a typedef
that is bound to a specific class type during compilation based on a target platform. For example, on Windows, it is typedef
’ed to FWindowsPlatformMisc
. These platform miscellaneous classes contain a lot of utility functions specific to a platform, things like accessing registry key, environment variables, requesting application to exit, getting CPU and GPU information and many more.
Have a look at FGenericPlatformMisc
which all of platform specific implementations inherit from to get a better understanding of what is available.