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

**URL:** <https://forums.unrealengine.com/t/how-to-create-only-header-file-while-exist-inside-include-generate-h/331477>\
**Category:** C++\
**Tags:** uht, unreal-engine, ubt, generated, question, CPP\
**Created:** [September 8, 2015, 5:40pm UTC](https://forums.unrealengine.com/t/how-to-create-only-header-file-while-exist-inside-include-generate-h/331477 "2015-09-08T17:40:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Turtle\_Corder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Turtle\_Corder](https://forums.unrealengine.com/u/Turtle_Corder)\
**Post date:** [September 8, 2015, 5:40pm UTC](https://forums.unrealengine.com/t/how-to-create-only-header-file-while-exist-inside-include-generate-h/331477/1 "2015-09-08T17:40:01Z")

</div>

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

I got questions than read ‘Survival Sample Game: Section 2’ sample code.  
( [A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/Survival_Sample_Game:_Section_2),  
[https://github.com/tomlooman/EpicSurvivalGameSeries/tree/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…

---

<div class="post-metadata">

**Author:** ![gmpreussner\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmpreussner\_1](https://forums.unrealengine.com/u/gmpreussner_1)\
**Post date:** [September 8, 2015, 6:26pm UTC](https://forums.unrealengine.com/t/how-to-create-only-header-file-while-exist-inside-include-generate-h/331477/2 "2015-09-08T18:26:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Turtle\_Corder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Turtle\_Corder](https://forums.unrealengine.com/u/Turtle_Corder)\
**Post date:** [September 9, 2015, 4:58am UTC](https://forums.unrealengine.com/t/how-to-create-only-header-file-while-exist-inside-include-generate-h/331477/3 "2015-09-09T04:58:48Z")

</div>

Thank you for answer!

---

<div class="post-metadata">

**Author:** ![idbrii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@idbrii](https://forums.unrealengine.com/u/idbrii)\
**Post date:** [November 11, 2015, 10:17pm UTC](https://forums.unrealengine.com/t/how-to-create-only-header-file-while-exist-inside-include-generate-h/331477/4 "2015-11-11T22:17:32Z")

</div>

Also, it seems like the .generated.h header are created/updated when you run [GenerateProjectFiles](https://docs.unrealengine.com/latest/INT/Programming/UnrealBuildSystem/ProjectFileGenerator/index.html).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d6e10f58](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d6e10f58](https://forums.unrealengine.com/u/anonymous_user_d6e10f58)\
**Post date:** [February 1, 2017, 11:05am UTC](https://forums.unrealengine.com/t/how-to-create-only-header-file-while-exist-inside-include-generate-h/331477/5 "2017-02-01T11:05:14Z")

</div>

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.
