I have a UMG Inventory with a grid of 16 slots (sub widgets within the inventory menu widget that hold an item icon and meta data. In order to determine which Slot to Highlight when I open the Inventory menu, in the parent inventory menu I do a ForEachLoopWithBreak to check each child to see if the slot contents match the item that the PlayerCharacter has currently equipped. If it matches then set that slot to be the active highlight, otherwise set the first slot in the list that has any content.
This all works fine if I give a slight delay… 2 frames (2 delay nodes with 0). But I know it isn’t desirable to put these kinds of delays into a shipping game and I instead want to get a callback from all 16 slots that their content is fully populated… (each slot did a cast to the player character to check some data so that is probably why I need the delay) but I don’t really know how to do that kind of check/callback I need to perform… Any Advice?
Thanks in advance.