# Unions and TUnion

**URL:** <https://forums.unrealengine.com/t/unions-and-tunion/5115>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [May 28, 2014, 1:30am UTC](https://forums.unrealengine.com/t/unions-and-tunion/5115 "2014-05-28T01:30:35Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [May 28, 2014, 5:58am UTC](https://forums.unrealengine.com/t/unions-and-tunion/5115/4 "2014-05-28T05:58:16Z")

</div>

Oooooh

🙂

You can’t make unions UPROPERTY() (at the moment)

You can always write a **Static Blueprint Library** to access your union data in whatever way you want, from any blueprint

like GetUnionAsFloat(ItemValue Value ) or GetUnionAsInt32(ItemValue Value)

You’ll have to declare your union in a header that you can include in your blueprint library class, or have your Blueprint Library class dependson AItem

**Wiki Tutorial on Blueprint Libraries**

> **[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 — ue4community.wiki! You will be able to find content from the official...

Rama

---

_[View the full topic](https://forums.unrealengine.com/t/unions-and-tunion/5115)._
