UE4项目中添加C++类失败

失败信息如下:

错误报告如下:
无法编译该项目。您想在Visual Studio 2017中打开它吗?
Running E:/UE4/UE_4.19/Engine/Binaries/DotNET/UnrealBuildTool.exe 我的项目6 Development Win64 -project="E:/UnrealEngine4 Project/我的项目6/我的项目6.uproject" -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for ?ҵ???Ŀ6 (no existing makefile)
@progress push 5%
Parsing headers for ?ҵ???Ŀ6Editor
Running UnrealHeaderTool "E:\UnrealEngine4 Project\?ҵ???Ŀ6\?ҵ???Ŀ6.uproject" "E:\UnrealEngine4 Project\?ҵ???Ŀ6\Intermediate\Build\Win64\?ҵ???Ŀ6Editor\Development\?ҵ???Ŀ6Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
E:/UnrealEngine4 Project/????6/Source/????6/????6GameModeBase.h(1): Error: Missing UCLASS name
Error: UnrealHeaderTool failed for target '?ҵ???Ŀ6Editor' (platform: Win64, module info: E:\UnrealEngine4 Project\?ҵ???Ŀ6\Intermediate\Build\Win64\?ҵ???Ŀ6Editor\Development\?ҵ???Ŀ6Editor.uhtmanifest, exit code: OtherCompilationError (5)).

原因在于我的项目名字中含有中文字符,删除项目中的中文字符即可

你可能感兴趣的:(工作UE4)