# Feature Request: Add ThisClass to each USTRUCT 

**URL:** <https://forums.unrealengine.com/t/feature-request-add-thisclass-to-each-ustruct/2833886>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [July 29, 2026, 8:12pm UTC](https://forums.unrealengine.com/t/feature-request-add-thisclass-to-each-ustruct/2833886 "2026-07-29T20:12:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [July 29, 2026, 8:12pm UTC](https://forums.unrealengine.com/t/feature-request-add-thisclass-to-each-ustruct/2833886/1 "2026-07-29T20:12:07Z")

</div>

Unreal provides a ThisClass typedef within each UCLASS and UINTERFACE type via their GENERATED\_BODY() macro. However, USTRUCT types do not have this. It looks like a single line update in UhtHeaderCodeGeneratorHFile.cs at line 525 would add it easily.

builder.Append(“\ttypedef “).Append(scriptStruct.SourceName).Append(” ThisClass; \\\r\n”);

I’ve got this added locally, but my lead wanted me to check in to see if this is something you guys would be interested in adding. I’ve got it changed locally and I don’t mind submitting a pull request if this is something you guys are interested in taking.

---

<div class="post-metadata">

**Author:** ![Steve\_Robb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steve\_Robb](https://forums.unrealengine.com/u/Steve_Robb)\
**Post date:** [August 19, 2026, 11:26am UTC](https://forums.unrealengine.com/t/feature-request-add-thisclass-to-each-ustruct/2833886/2 "2026-08-19T11:26:18Z")

</div>

Hi Daniel, I’ve made that change and sent it for review. I’ll let you know how it goes, but I don’t anticipate any problems.

Steve

---

<div class="post-metadata">

**Author:** ![Steve\_Robb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steve\_Robb](https://forums.unrealengine.com/u/Steve_Robb)\
**Post date:** [August 25, 2026, 12:41pm UTC](https://forums.unrealengine.com/t/feature-request-add-thisclass-to-each-ustruct/2833886/3 "2026-08-25T12:41:06Z")

</div>

Hi again, this has been submitted now and will be available in 6.0. Thanks for the suggestion!

Steve
