I ran into this problem with structs and arrays today while working in my procedural world.
I got an array of stucts. Each struct contain their own array. The problem occurred inside blueprints. Adding a struct to the first array seem to require that each of the variables or arrays inside the struct also get populated. Fine, I can create the array… but the only available node is “Make Array” and it wants to add an element… (Description : Create an array from a series of items). But I don’t want to add any elements yet, or rather, I can’t because they don’t exist yet.
Funny thing is, I accidentally solved this just now… you can right click on the “in pin” item in the “Make Array” node and choose “remove array element pin”. This way, an array can be created without any elements
But this wasn’t very intuitive for me as a new blueprint user (and experienced programmer).
A small change suggestion for the Make Array node :
- Remove the default item that it tries to add to the array.
- This would leave left side of the node empty like seen on the image, add a “Add pin +” on the left side as well (can be named differently to make its function more obvious).