Skip to content

Commit

Permalink
[unreal]修复UserDefinedStruct引用导致的编译报错 (#1948)
Browse files Browse the repository at this point in the history
* [unreal]修复UserDefinedStruct引用导致编译报错

* [unreal]UserDefinedStruct的修改兼容5.5之前的老版本

---------

Co-authored-by: [email protected] <[email protected]>
  • Loading branch information
Shirlman and [email protected] authored Dec 18, 2024
1 parent cc4a6bb commit 21e2f67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
#include "Widgets/Notifications/SNotificationList.h"
// #include "Misc/MessageDialog.h"
#include "Framework/MultiBox/MultiBoxBuilder.h"
#if (ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 5)
#include "StructUtils/UserDefinedStruct.h"
#else
#include "Engine/UserDefinedStruct.h"
#endif
#include "Engine/UserDefinedEnum.h"
#include "Engine/Blueprint.h"
#include "CodeGenerator.h"
Expand Down
4 changes: 4 additions & 0 deletions unreal/Puerts/Source/JsEnv/Private/PropertyTranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
#include "ObjectMapper.h"
#include "StructWrapper.h"
#if !defined(ENGINE_INDEPENDENT_JSENV)
#if (ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 5)
#include "StructUtils/UserDefinedStruct.h"
#else
#include "Engine/UserDefinedStruct.h"
#endif
#endif
#include "ArrayBuffer.h"
#include "ContainerWrapper.h"
#include "JsObject.h"
Expand Down

0 comments on commit 21e2f67

Please sign in to comment.