【问题标题】:Error when make a build of the game in Uneral Engine在虚幻引擎中构建游戏时出错
【发布时间】:2021-03-05 10:32:59
【问题描述】:

当我尝试构建时,出现错误

无法打开包含文件:'Actions/PawnAction.h':没有这样的文件或目录

但我在 Visual Studio 中有这个文件

【问题讨论】:

    标签: c++ unreal-engine4


    【解决方案1】:

    你需要在你的模块依赖中包含AIModule

    来源:JamieDale from UE4 Q&A site

    没错,如果您的游戏名为“MyGame”,那么在“Source\MyGame”文件夹中就会有一个名为“MyGame.Build.cs”的文件。

    此文件告诉 UnrealBuildTool (UBT) 在构建游戏时要做什么。

    您应该在其中看到 PrivateDependencyModuleNames 和/或 PublicDependencyModuleNames 的数组 - 这告诉 UBT 在构建游戏时需要链接哪些模块,因此您需要将“AIModule”添加到其中之一。

    【讨论】:

      猜你喜欢
      • 2020-09-01
      • 1970-01-01
      • 2014-04-26
      • 1970-01-01
      • 2021-01-20
      • 2015-09-15
      • 2020-03-24
      • 2021-04-14
      • 2020-06-08
      相关资源
      最近更新 更多