Hi all,
I need to iterate through a Map’s Elements in blueprints (I need it to be a map so I can look up the values via Name keys later). After searching through several posts and guides, I’ve put together some C++ code that I thought would do the trick, but didn’t work out the way I thought it would:
The resulting blueprint node has the correct inputs and outputs:
But it looks like ExpandEnumAsExecs
only affects execution after the function has finished, so the loop never happens.
I’ve been trying to avoid doing something like this:
because I think this is bad code- iterating through key:value pairs directly is likely more efficient.
So, since ExpandEnumAsExecs
appears to be out of the question, there must be some other way to create a loop in C++ that can be “hooked into” in Blueprints, right? If there’s a way to do it strictly in blueprints that would be fine too.