Reverse For Each Loop Macro with Wildcard Code

I wanted an easy way to reverse-iterate through a list of objects such that I could safely remove them by index as I went if needed.

So I created a Blueprint Macro Library and now have it working.

I attach an image of the macro and a usage example in case anyone else would find this useful.

Here’s another variant: [A Little Tip] Remove elements from an array in one pass with a reverse for loop - Programming & Scripting - Epic Developer Community Forums

Epic, please integrate! Thank you :slight_smile:

Instead of a For Each loop use a For Loop with first index = 0 and last index = [array length - 1]. Take the output index and connect it to a get node.