Error with including generated header files when using the Script Generator Plugin
Whenever I recompile my game code with the SGP targeting my game project, it will result in an error similar to this:
What I do to accomplish this error is add "+ScriptSupportedModules=Test" to DefaultEngine.ini under "[Plugins]" in my UnrealHeaderTool config. Rebuild UHT and rebuild my game project.
Would anyone happen to know why this error occurs and how to fix it? I appreciate the help.
asked Feb 15 '15 at 03:39 AM in C++ Programming
You need to add the (source) project depend on you target project. Say you have a class which have AClass.h and AClass.generated.h on you "Test" project. You want to use the AClass.h in you Plugin project.
So you need to open you Plugin *.Build.cs file, and add "Test" to PrivateDependencyModuleNames or PublicDependencyModuleNames
answered Apr 22 '16 at 03:52 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here