# How do you use global UStructs in C++ ?

**URL:** <https://forums.unrealengine.com/t/how-do-you-use-global-ustructs-in-c/136224>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [January 10, 2020, 3:05am UTC](https://forums.unrealengine.com/t/how-do-you-use-global-ustructs-in-c/136224 "2020-01-10T03:05:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![anonymous\_user\_72ac72801](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_72ac72801](https://forums.unrealengine.com/u/anonymous_user_72ac72801)\
**Post date:** [January 10, 2020, 6:11pm UTC](https://forums.unrealengine.com/t/how-do-you-use-global-ustructs-in-c/136224/5 "2020-01-10T18:11:33Z")

</div>

> [@Fieol](#):
>
> You can also use
> 
> ```auto
> 
> GENERATED_USTRUCT_BODY()
> 
> ```
> 
> instead of GENERATED\_BODY()

Is there any reason to use one over the other?  
I read on the wiki: “In case you are looking for GENERATED\_USTRUCT\_BODY, in 4.11+, GENERATED\_BODY() should be used instead.”

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

---

_[View the full topic](https://forums.unrealengine.com/t/how-do-you-use-global-ustructs-in-c/136224)._
