例如使用 CustomMeshComponent 插件 在Build.cs 文件 中 添加以下两行代码

如图可配置路径,可解决#include "CustomMeshComponent" 找不到头文件错误

    1. PrivateDependencyModuleNames.AddRange(new string[] { "CustomMeshComponent" });
      PrivateIncludePathModuleNames.AddRange(new string[] { "CustomMeshComponent" });
      

        C:\Program Files\Epic Games\4.10\Engine\Plugins\Runtime\CustomMeshComponent\Source\CustomMeshComponent\Classes

        C:\Program Files\Epic Games\4.10\Engine\Plugins\Runtime\CustomMeshComponent\Source\CustomMeshComponent\Private    
    2. C:\Program Files\Epic Games\4.10\Engine\Plugins\Runtime\CustomMeshComponent\Intermediate\Build\Win64\UE4\Inc\CustomMeshComponent
  1.   在 C++ 代码中使用 UE4 插件---Using a plugin in C++ code

解决方案:

https://answers.unrealengine.com/questions/13691/using-a-plugin-in-c-code.html

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-10-28
  • 2022-12-23
  • 2021-09-14
  • 2021-07-21
相关资源
相似解决方案