赞
踩
在xxxx.Build.cs中添加ProceduralMeshComponent:
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "ProceduralMeshComponent" });
在xxxx.uproject中添加ProceduralMeshComponent:
- {
- "FileVersion": 3,
- "EngineAssociation": "4.26",
- "Category": "",
- "Description": "",
- "Modules": [
- {
- "Name": "SomeOne",
- "Type": "Runtime",
- "LoadingPhase": "Default",
- "AdditionalDependencies": [
- "Engine",
- "ProceduralMeshComponent"
- ]
- }
- ],
- "Plugins": [
- {
- "Name": "ProceduralMeshComponent",
- "Enabled": true
- }
- ]
-
- }
在两个json文件中添加完ProceduralMeshComponent可以正常编译,但是有红线报错。所以需要保留UE4项目删掉vs项目文件重新生成vs,把ProceduralMeshComponent源文件添加到vs库中。
选中文件保留,其余删掉,然后右键选中xxxx.uproject生成VS文件
参考https://blog.csdn.net/qq_31788759/article/details/104093259
有时候新建的C++类的头文件的#include “Actor.generated.h ”会报红,这时可以在VS里面 “解决方案里面“ 先把 developmen editor 该为 debuggame editor ,然后点击项目,重新生成,生成成功后再改回 developmen editor,这样基本就解决了
原文链接:https://blog.csdn.net/qq_33727884/article/details/91966617
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。