How to pass a struct around as a reference?

somawheels
Mon, 21 Jun 2021 22:57:34 +0000
Editor Scripting

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.

1 post - 1 participant