How to re-enable per platform identification macros, such as PLATFORM_XXX
Article written by Jon C.
Following the engine->platform folder refactor from UE4.24/4.25 onwards, we have deprecated the use of PLATFORM_XXX macro commands because of issues with NDA restrictions, and have modified the engine to use the platform folder structure instead.
However, we appreciate this is only really a restriction for us at the engine level, and you may still require the functionality at project level. You can enable them by setting
bAllowConfidentialPlatformDefines=true in your
After that, you should be able to use PLATFORM_XXX for any platform you need (e.g. PLATFORM_WINDOWS etc). This includes all mobile and console platforms.