在 C++ 代码中使用 UE4 插件—Using a plugin in C++ code

例如使用 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

原文链接: https://www.cnblogs.com/linqing/p/5020328.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    在 C++ 代码中使用 UE4 插件---Using a plugin in C++ code

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/225360

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月13日 下午12:47
下一篇 2023年2月13日 下午12:47

相关推荐