c++ - Error when make a build of the game in Uneral Engine
问题描述
When I try to make a build, I'm getting error
Cannot open include file: 'Actions/PawnAction.h': No such file or directory
But I have this file in Visual Studio
解决方案
You need to include AIModule
in your module dependencies.
Source: JamieDale from UE4 Q&A site:
Right, so if your game was called "MyGame", then you'd have a file called "MyGame.Build.cs" inside the "Source\MyGame" folder.
This file tells the UnrealBuildTool (UBT) what to do when building your game.
In there you should see an array for PrivateDependencyModuleNames and/or PublicDependencyModuleNames - this tells UBT which modules need to be linked when building your game, so you'll need to add "AIModule" to one of those.
推荐阅读
- firebase - 未处理的异常:PlatformException(functionsError,云函数因异常失败。,{消息:PERMISSION_DENIED,)
- java - 使用 apache POI 和 java 访问 excel 数据时出错
- javascript - Chrome 和 Firefox 上的时区错误
- vba - 试图将 ObjPtr 反转为对象我得到内核在 64 位中未找到错误 53,但在 32 位中未找到
- azure - 创建要由 Azure 逻辑应用接收的 Azure 存储帐户事件订阅的问题
- javascript - 如何根据用户输入更改元素的值
- javascript - “src 属性”未从外部 JavaScript 文件或其他脚本块中获取值
- asp.net-core - asp.net core web api本地https问题
- autocomplete - PhpStorm - li [TAB] 使用“link”元素而不是“li”元素自动完成
- excel - 如何知道我的加载项已在 Excel 任务窗格 Office 365 中打开?