# How create a .generated.h file

**URL:** <https://forums.unrealengine.com/t/how-create-a-generated-h-file/360131>\
**Category:** C++\
**Tags:** error-code, unreal-engine, UE4, CPP, question\
**Created:** [June 9, 2016, 12:43am UTC](https://forums.unrealengine.com/t/how-create-a-generated-h-file/360131 "2016-06-09T00:43:31Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![NeveraiN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NeveraiN](https://forums.unrealengine.com/u/NeveraiN)\
**Post date:** [December 7, 2021, 5:31pm UTC](https://forums.unrealengine.com/t/how-create-a-generated-h-file/360131/11 "2021-12-07T17:31:41Z")

</div>

try this:

> [@no generated.h file](https://forums.unrealengine.com/t/no-generated-h-file/107387/8):
>
> for anyone with the same issue. English Version add a new \*.h file add the following code#include "CoreMinimal.h" USTRUCT(BlueprintType) struct FMyNewStruct { GENERATED\_BODY() }; Note: Struct name start with F Note: GENERATED\_BODY is required Build Solution Note: there will be compile error, just ignore Note: you can not find the new struct in UE Editor Note: this compile action will start UnrealHeaderTool that will generate \*.generated.h Edit code，include \*.generated.h#include "Core…

---

_[View the full topic](https://forums.unrealengine.com/t/how-create-a-generated-h-file/360131)._
