Adding/Removing Arrays dynamically

Hey guys,

does anyone know how to add arrays in a blueprint dynamically (maybe in a struct) ? Means not hitting the “+” in the editor or defining the final number of arrays from the beginning, but hitting an “ADD” checkbox in the cunstruction script (naming convention?) . I kind of need this for a Building script i´m working on. Is this even possible in Blueprints ? I´m not a c++ coder, but having a 60 hours tutorial in c++ here (didnt even start atm) …

i want to add dynamically transformation arrays, then getting the names of the array (or the Index of the Array) and adding variables to that specific named array.

Thanks in Advance !

In BP, you are not allowed to have arrays of arrays (twodimensional arrays).
Howevery, there’s a trick:
Put your Array into a struct. and in your blueprint, you have an array of this struct.
Don’t forget to expose the Struct on Spawn and you can add arrays to the array.

You can use loops to add elements to any array like so:

Capture.PNG

Thank you very much! Will try this now and hopefully it works !

Yes !

Works perfectly ! Thanks for the hint !