Struct nesting data loss

When adding structs inside of structs, the structs lose their data and goes to defaults. I wrongfully posted it here at first : Set Array Elem for structs doesn't work; what are the alternatives ? - Feedback for Unreal Engine team - Unreal Engine Forums

So, here’s my case :

I have one type of struct that contains an array of integers, a vector and a linear color, called NodeStruct.

Then, it is included into another struct that contains an array of it, called PartStruct.

I have another struct called CraftStruct that contains an array of PartStructs.

When I try to access any NodeStruct inside of a PartStruct, it’s just the default value of the struct that I get. The array is empty, the color is #00000000 and the vector is null.

I tried not to use CraftStruct and use PartStruct directly, but the data loss is still here. It seems like the arrays don’t get the data they were supposed to get, they just get the right size.

Have you made sure that when you set the values, you’re not Getting a Copy before that, because struct’s are considered primitive data, which is not passed by reference by default.

Yes, i’m directly constructing the struct, then adding them to an array, etc… They are being made from components, and, afaik, you can’t save components.

So, I forgot that structs arrays can’t use the Set array elem node, so that explains why.
It could use being fixed.