# What is \*.generated.h header file?

**URL:** <https://forums.unrealengine.com/t/what-is-generated-h-header-file/346873>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question\
**Created:** [February 9, 2016, 10:19am UTC](https://forums.unrealengine.com/t/what-is-generated-h-header-file/346873 "2016-02-09T10:19:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_59d52323](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_59d52323](https://forums.unrealengine.com/u/anonymous_user_59d52323)\
**Post date:** [February 9, 2016, 10:19am UTC](https://forums.unrealengine.com/t/what-is-generated-h-header-file/346873/1 "2016-02-09T10:19:52Z")

</div>

hi  
When I create a class in unreal engine by wizard, on the top of the class header file there is a line #include “MyClass.generated.h”. My question is that what is this header file and why I can not find it in solution explorer in visual studio?  
thanks.

---

<div class="post-metadata">

**Author:** ![Co](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Co](https://forums.unrealengine.com/u/Co)\
**Post date:** [February 9, 2016, 2:12pm UTC](https://forums.unrealengine.com/t/what-is-generated-h-header-file/346873/2 "2016-02-09T14:12:17Z")

</div>

Hi Mohammad,

_MyClass.generated.h_ is the include file generated by the UnrealHeaderTool (before UnrealBuildTool compilation) while parsing unreal macros in _MyClass.h_.

All the **UCLASS, USTRUCT, UPROPERTY, UFUNCTION** macros produce code in the generated.h and so the Blueprint magic can occur in your project with a minimal effort from your side.

Hope it helps

Cø
