参考http://www.javashuo.com/article/p-cddayhnu-gy.htmlhtml
在对应的build.cs文件中的Public/PrivatgeDependencyModuleNames引入相关模块,好比上面我遇到的错误,加上下面这行就行了:ui
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "RHI", "RenderCore" });