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[] {