# How to create a Structure in a separate file

**URL:** <https://forums.unrealengine.com/t/how-to-create-a-structure-in-a-separate-file/297218>\
**Category:** Editor Scripting\
**Tags:** ustruct, Structure, unreal-engine, question\
**Created:** [October 25, 2014, 5:57pm UTC](https://forums.unrealengine.com/t/how-to-create-a-structure-in-a-separate-file/297218 "2014-10-25T17:57:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 26, 2014, 3:08am UTC](https://forums.unrealengine.com/t/how-to-create-a-structure-in-a-separate-file/297218/2 "2014-10-26T03:08:33Z")

</div>

#Static UObject Library

I use a Static UObject Library to store all my USTRUCTS so they can be used in any class in my entire code base

#My Wiki On Static Function 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...

#For You

Just put all your USTRUCTS above your class definition and below the #include 🙂

Then include your static library in all your game classes .h files 🙂

#Static USTRUCT Library

Section of tutorial most related to your question

> **[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/how-to-create-a-structure-in-a-separate-file/297218)._
