I’m not able to find the nodes ‘foreach loop’ even if I disable the context sensitive. It seems that all the loop nodes concerning arrays are not available in my version of Unreal Engine (4.26).
Is there a parameter to modify or my version of the engine has a problem?
I tried in another widget blueprint and that works. I think there is a problem with my first widget blueprint. I will recreate a WB because I don’t understand where is the problem finally. Thank you for your help.
If anyone else finds this (lonely and solitary!) reference to the problem of missing FOR nodes in a Widget BP in 4.26, I have a ‘fix’ for you…
BTW, I tried using a fresh Widget BP as suggested above, but that didn’t solve the problem; neither did restarting the engine.
All I did to work around the issue was to create a new BP (although I expect it would also work using a preexisting BP) derived from an Actor, go into the event graph, and right click into the space; both the For and ForEach loops were available as expected. I then copied and pasted the required node into my Widget BP. From then on, the nodes were appearing in the Actions (i.e. the right click menu) as expected.
I hope this helps someone; it had me tearing out my hair (not that I have much left these days!) until I guessed at this workaround!
This issue has been reported, reproduced by staff and is being tracked in our ticketing system.
Apparently the for loop in widget BP comes back if you create an actor BP and looking for a for loop in that BP and then go back to your widget blueprint…
Same problem over here. Unable to for each loop on array. Its hard to believe they did not fix such an important logic like that for that much long time. Come on Epic Games?!
I just fixed this! I tried at level blueprint not in widget blueprint. once you get ‘for loop’ for your level BP, and then you can find it in widgetBP as well.