Hi, I’m at my wits end trying to fill this array of mine. I’m working on a drag and drop inventory system, and have been using this video series as reference: https://www.youtube.com/watch?v=wyC5vl64V9k
So, I have an “inventory” widget, which contains a number of “inventorySlot” widgets. InventorySlots are simply buttons with an image on them, and this image is bound to a variable.
Now, in the ‘inventory’ widget, I want to make an array containing references to the inventorySlots, like so: (I made a custom event rather than using the event construct so I could call it whenever to debug)
However, when I try to access this array variable, it seems to be empty. What am I doing wrong?
If I move the InventorySlotArray variable to a separate actor BP meant to hold the actual inventory and use makeArray there, the array seems to fill, but not with the correct values - i can print out the indexes and there are 10 - but if I try to print out the actual array elements, it prints nothing.