For the sake of simplicity… I’m going to title the possible plugin as “TesterPlugin”.
For brevity, the plugin will have been downloaded from Marketplace to the following location:
C:/Program Files/UE_4.25/Engine/Plugins/Marketplace/TesterPlugin
My Plugin.uplugin has this added:
Plugins: [
{
“Name”: “TesterPlugin”,
“Enabled”: true
}
]
The file will be structured something like this:
TesterPlugin/Source/TesterPlugin/Public
The following is how I have structured my build.cs:
PublicIncludePaths.AddRange( new string { “Plugins/Marketplace/TesterPlugin/Source/TesterPlugin/Public” });
PublicDependencyModuleNames.AddRange(new string{ “Core”, “/TesterPlugin” });
In my header.h file, I have set up my script as such:
include “TesterPlugin.generated.h” // I have also tried “TesterPlugin.h”
However, this results in an error, as it cannot find my dependency.
What am I doing wrong?