# Initiallizing the variables of a structure

**URL:** <https://forums.unrealengine.com/t/initiallizing-the-variables-of-a-structure/290764>\
**Category:** Editor Scripting\
**Tags:** ustruct, initialize, unreal-engine, CPP, question\
**Created:** [August 12, 2014, 11:00am UTC](https://forums.unrealengine.com/t/initiallizing-the-variables-of-a-structure/290764 "2014-08-12T11:00:47Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![envenger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@envenger](https://forums.unrealengine.com/u/envenger)\
**Post date:** [August 12, 2014, 10:19pm UTC](https://forums.unrealengine.com/t/initiallizing-the-variables-of-a-structure/290764/6 "2014-08-12T22:19:48Z")

</div>

Ok I will add an UPROPERTY() on top.

The structure is initialized above a class declaration. Something I read in this tutorial.  
I don’t know if its the correct way to do it or now.

> **[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...

---

_[View the full topic](https://forums.unrealengine.com/t/initiallizing-the-variables-of-a-structure/290764)._
