Am i storing struct reference inside a local variable ?

Hi all,

The red circle corresponds to a blueprint reference (SegSplineBP) stored in a local variable. So far, so good. I was wondering if the green circle corresponded to a STRUCT reference stored in a local variable or a copy?
I’m wondering because when I hover over the “ArrayElement” of the “ForeachLoop” node, “reference” is not displayed, instead “ZonesBlock structure” is displayed.

Thanks

Structs are value types and classes are reference types.

You are getting a copy of the struct, because structs are typically passed along as values, not as references.
If you want something that’s guaranteed to be used as a reference, base it off of UObject.

Thanks a lot,

So the cleanest way would be to pass the struct array index as a parameter 2 and the parent object as a parameter 1 whenever i use a fonction that modifies a certain struct ?