例如使用 CustomMeshComponent 插件 在Build.cs 文件 中 添加以下两行代码
如图可配置路径,可解决#include "CustomMeshComponent" 找不到头文件错误
-
PrivateDependencyModuleNames.AddRange(new string[] { "CustomMeshComponent" }); PrivateIncludePathModuleNames.AddRange(new string[] { "CustomMeshComponent" });
C:Program FilesEpic Games4.10EnginePluginsRuntimeCustomMeshComponentSourceCustomMeshComponentClasses
C:Program FilesEpic Games4.10EnginePluginsRuntimeCustomMeshComponentSourceCustomMeshComponentPrivate - C:Program FilesEpic Games4.10EnginePluginsRuntimeCustomMeshComponentIntermediateBuildWin64UE4IncCustomMeshComponent
-
-
解决方案:
https://answers.unrealengine.com/questions/13691/using-a-plugin-in-c-code.html