# Include header files from Plugin with modules

**URL:** <https://forums.unrealengine.com/t/include-header-files-from-plugin-with-modules/2876187>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [December 2, 2026, 6:33pm UTC](https://forums.unrealengine.com/t/include-header-files-from-plugin-with-modules/2876187 "2026-12-02T18:33:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [December 2, 2026, 6:33pm UTC](https://forums.unrealengine.com/t/include-header-files-from-plugin-with-modules/2876187/1 "2026-12-02T18:33:11Z")

</div>

Hi!

I want to use C++ classes from a plugin in my game module. The code inside this plugin is split in modules.

What do I need to do to use it?

In the `Game.Build.cs` file I have added this:

```csharp
PrivateDependencyModuleNames.AddRange(new string[] { "MyPlugin" });

PublicIncludePaths.AddRange(new string[] { "MyPlguin/Public" });

```

But it doesn’t compile.

The compiler doesn’t find this: `#include <AModuleInPlugin/Public/UsefulFile.h>`

How can I fix this problem?

Thanks!

---

<div class="post-metadata">

**Author:** ![lucas\_kokku](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucas_kokku/32/1227621_2.png) [@lucas\_kokku](https://forums.unrealengine.com/u/lucas_kokku)\
**Post date:** [December 2, 2026, 6:42pm UTC](https://forums.unrealengine.com/t/include-header-files-from-plugin-with-modules/2876187/2 "2026-12-02T18:42:58Z")

</div>

Hello! You should add the name of the module as a dependency, rather than the name of the plugin.

```csharp
PrivateDependencyModuleNames.AddRange(new string[] { "AModuleInPlugin" });

```

Then you should be able to include `UsefulFile.h` like so:

```cpp
#include <UsefulFile.h>

```
