Getting Array value in Macro problem (Bug?) UE5

I have a macro which takes an Array with preset values plugged into it. However whenever it runs, when getting the value from the array from within the macro it only ever returns a value of zero - cannot work out why?

image
This is my array with the set array values, plugged into the macro


This is ‘inside’ my Macro with a print String - this always prints/bools a value of 0

Any ideas why this is happening - is it not possible to do this with an array in a macro?

Ok - worked it out but leaving this here for anyone who makes the same mistake I did. I was using a ‘GET (a Ref)’ node on the incoming array, rather than a ‘GET ( a copy)’

  • not sure entirely why the behaviour is that way with a Ref node but anyway.
1 Like