Download

How to populate an array with variables automatically

I’m trying to populate my array with many variables at once and while it’s doable here, it could be much more tedious when I need to deal with more variables. I’m looking for a way to automatically take all variables of a certain type and put them in an array. In particular, I want to populate my array with “Inventory Slot” variables (custom type) in the order “Slot_0, Slot_1, …, Slot_31”. I tried “Get all widgets of class” but that didn’t work. Any help is greatly appreciated. Thanks!