Headers of the plugin can not be found

Hello,

I’m trying to import a plugin to my project, I include the headers of the CPP codes of the plugin in my script and call the functions, the IDE seems ok with the code as it doesn’t get confused and finds the include files which are in Plugins/NameOfPlugin/Source/Public

but when I try to compile the code in the unreal editor, it shows an error saying MyHeader.H could not be found.

I searched around and found some answers that are saying that I need to add the include files into the build.cs file of the project, or build.cs of the plugin, I tried to do that but it didn’t fix my problem, I don’t know whether it’s because that’s not the solution for my problem or what.

Any help is greatly appreciated

1 Like