So, I’m trying to use a For Each Loop to get the length of the array to reflect on the number of child widgets added in a wrap box, but it doesn’t work. The only thing that works for me is “For Loop”, but I’ve seen others use “For Each Loop” and it works for them…
The blueprint I created in the widget goes like this…
Event Pre Construct > For Each Loop > Create widget > Add to Wrap Box.
For “For Each Loop”, I called the “Get player Character” from there I got the “Get Component by Class” and then pulled out the Array from there.
What am I doing wrong?
For some odd reason, the “For each loop” only works with “Event Tick” but not “Event pre construct” Or “Event Construct”, why is that?