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.
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ø
2 Likes