# How to pass a struct around as a reference?

**URL:** <https://forums.unrealengine.com/t/how-to-pass-a-struct-around-as-a-reference/485191>\
**Category:** Editor Scripting\
**Tags:** Struct, reference, unreal-engine, pointer, question\
**Created:** [June 21, 2021, 10:57pm UTC](https://forums.unrealengine.com/t/how-to-pass-a-struct-around-as-a-reference/485191 "2021-06-21T22:57:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somawheels](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@somawheels](https://forums.unrealengine.com/u/somawheels)\
**Post date:** [June 21, 2021, 10:57pm UTC](https://forums.unrealengine.com/t/how-to-pass-a-struct-around-as-a-reference/485191/1 "2021-06-21T22:57:34Z")

</div>

This is my situation:

On thread 1, I make a new struct.

On thread 2, I modify the values inside the struct.

In thread 1, i want to check if thread 2 has changed the values in the struct. How would i do this?  
I feel like like i should pass the struct around using a reference/pointer, however I got errors when i tried to do that.

Edit:: I figured out I can pass as truct to function as a pointer, as long as its not a UFunction.
