From eba312e20bfaf31c60bff36212f3b515c2f76c6e Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 5 Feb 2019 21:01:05 +0000 Subject: [PATCH] Fixed UBT warning in UE 4.21. From 4.21 onward modules must specify an explicit precompiled header in build script file. --- README.md | 2 +- Source/ImGui/ImGui.Build.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cb9c259..3833109 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Status ------ ImGui version: 1.65 -Supported engine version: 4.20.2* +Supported engine version: 4.21* \* *Plugin has been tested and if necessary updated to compile and work with this engine version. As long as possible I will try to maintain backward compatibility of existing features and possibly but not necessarily when adding new features. Right now it should be at least backward compatible with the engine version 4.15.* diff --git a/Source/ImGui/ImGui.Build.cs b/Source/ImGui/ImGui.Build.cs index d2e73b3..c882062 100644 --- a/Source/ImGui/ImGui.Build.cs +++ b/Source/ImGui/ImGui.Build.cs @@ -57,6 +57,9 @@ public class ImGui : ModuleRules // Enable runtime loader, if you want this module to be automatically loaded in runtime builds (monolithic). bool bEnableRuntimeLoader = true; +#if UE_4_21_OR_LATER + PrivatePCHHeaderFile = "Private/ImGuiPrivatePCH.h"; +#endif PublicIncludePaths.AddRange( new string[] {