Use C++ error

Running D:/Epic Games/Epic Games/UE_4.22/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Win64 -Project=“E:/Unreal Projects/我的项目6/我的项目6.uproject” -TargetType=Editor -Progress -NoHotReloadFromIDE
Creating makefile for ???6Editor (no existing makefile)
@progress push 5%
Parsing headers for ???6Editor
Running UnrealHeaderTool “E:\Unreal Projects????6????6.uproject” “E:\Unreal Projects????6\Intermediate\Build\Win64????6Editor\Development????6Editor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
E:/Unreal Projects/???6/Source/???6/???6Character.h(1): Error: Class ‘A’ must inherit UObject or a UObject-derived class
E:/Unreal Projects/???6/Source/???6/???6GameMode.h(1): Error: Class ‘A’ must inherit UObject or a UObject-derived class

Please tell me how to deal with it. Thank you

It seems like some of your classes does not follow unreal’s naming convention. Classes that derive from UObject should be prefixed with U(ClassName) and that derive from AActor should be A(ClassName).

Unreal并不支持中文項目名

We can not using Chinese project name in UE4.