在虚幻引擎中构建游戏时出错
Error when make a build of the game in Uneral Engine
当我尝试构建时,出现错误
无法打开包含文件:'Actions/PawnAction.h': 没有那个文件或目录
但是我在 Visual Studio
中有这个文件
您需要在模块依赖项中包含 AIModule
。
来源: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.
当我尝试构建时,出现错误
无法打开包含文件:'Actions/PawnAction.h': 没有那个文件或目录
但是我在 Visual Studio
中有这个文件您需要在模块依赖项中包含 AIModule
。
来源: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.