Plugin file not found?

Hi!

I have a plugin:
image

However when I try to include the .h file in a file in the main project by either using:
#include “GAS_AttributeSetBase.h”

or

#include “…/…/…/Plugins/[PLUGINNAME]/Source/[PLUGINNAME]/Public/GAS_AttributeSetBase.h”

I get the following error:

is there a correct way to include a .h file from a plugin?

I decided to not include the .h file, and try to compile it that way, without using the plugin in the project. I am now getting the following errors:

image

here’s a link of the dependencies this plugin relies on:
image

should anyone stumble into this problem, unkowingly as i did, here’s how you might solve it:

go to your projectGame.build.cs

You’ll see a line:
PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore” });

simply add the name of your plugin.

PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “YOURPLUGINNAME” });

1 Like