x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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:

Test/Source/Test/Public/TestGameMode.h(4): fatal error C1083: Cannot open include file: 'TestGameMode.generated.h': No such file or directory

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.

Product Version: Not Selected
Tags:
more ▼

asked Feb 15 '15 at 03:39 AM in C++ Programming

avatar image

echo1001
6 1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered Apr 22 '16 at 03:52 AM

avatar image

junjie020
0 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question