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"

how to create only header file while exist inside include generate.h

hi, i'm korean.. my English is a little immature. Please understand..

I got questions than read 'Survival Sample Game: Section 2' sample code. ( https://wiki.unrealengine.com/Survival_Sample_Game:_Section_2, https://github.com/tomlooman/EpicSurvivalGameSeries/tree/Section-2 )

How to Create Only Header file while exist inside include *.generate.h ? (Like survival sample game code in STypes.h)

I look forward to a good answer. Thank you..

Product Version: UE 4.7
Tags:
more ▼

asked Sep 08 '15 at 05:40 PM in C++ Programming

avatar image

Turtle Corder
6 1 2 3

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

1 answer: sort voted first

I hope I understood your question correctly, but it sounds like you're wondering how to create the .generated.h header files.

The .generated.h header files are generated automatically for you by Unreal Header Tool (UHT). They will be generated whenever you declare a USTRUCT() or UCLASS() type in your header files. The name of the generated header will be the name of your header file, plus ".generated" appended. For example, if your header is called MyHeader.h and declares one or more UCLASS or USTRUCT types, the file MyHeader.generated.h will be generated for you.

The contents of the .generated.h file depend on the details of your type declarations. They generally contain glue code for run-time reflection, serialization, default constructors and initialization code.

more ▼

answered Sep 08 '15 at 06:26 PM

avatar image

gmpreussner STAFF
4.2k 124 55 228

avatar image Turtle Corder Sep 09 '15 at 04:58 AM

Thank you for answer!

avatar image idbrii Nov 11 '15 at 10:17 PM

Also, it seems like the .generated.h header are created/updated when you run GenerateProjectFiles.

avatar image nikolatta Feb 01 '17 at 11:05 AM

Hello , well, where is .h file ?(Engine folder or games folder)I mean can i make generate file in Source/Runtime/Engine/Clases/ ..?

i want to a file like vehiclewheel.h.But when i create a vehiclewheelX.h. ,VS get error and i can not generate file vehiclewheelX.generate.h.

(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