在项目中 Add Class

UE4 使用 VisualStudio 创建 C++ Class
找到创建的Class 移动要项目中的目录。

#include “xxx.generated.h”

若class中含有 UE4 的宏,比如 UENUM, UFUNCTION等,
需要 ** #include “xxx.generated.h” **

Build Debug Game Editor

然后选择 Debug Game Editor 进行编译(其他模式可能 提示 找不到 generated.h)。

相关文章:

  • 2021-08-25
  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
  • 2021-09-05
  • 2022-01-04
猜你喜欢
  • 2022-12-23
  • 2021-04-16
  • 2022-01-17
  • 2021-07-06
  • 2022-12-23
  • 2021-09-30
  • 2022-02-12
相关资源
相似解决方案