Am I misunderstanding Set by Ref?

I have three different structs of the same type. I select one by index, then I want to set its members.

I thought using Set by Ref like this:

would work but the values inside the reference don’t get set. I have some save operations happening afterwards, but they have been confirmed to work if I just use a single struct reference directly. So I think there is some problem with how I am using set by ref.

Anybody know what I am doing wrong, or could suggest a better way?

What I aim to avoid is selecting the struct from index multiple times, if at all possible.

here is what happens in the Get Navigator data:

Okay I think I solved it. I still dont know what the Set by Ref node really does but that doesn’t matter for this problem.

What I needed was a Set function, like this:

1 Like