Is there a built in Blueprint function to Append a Map Variable to Another Map Variable of same type? Such as Taking Map of Name-Integer and Combining with Map of Name-Integer? Usually in programming functions like these are built in for performance? Do I really need to for loop the keys values and make my own blueprint function?
The function does exist, called append, which allows you to append one map into another. I believe this is only available in c++ and not blueprints out of the box (so no in regard to BPs).
Yeah to do this in blueprints I think you’d need to loop over the maps and either override one or put them in another map. More effort is required but it can essentially be done
Most Disappointing, makes me wonder why they would not expose the function to BP??
That exact function can not be exposed in the blueprint version because the internal management differs between the BP and c++ maps. As for why there isn’t a BP equivalent though, not entirely sure (would only be slightly convenient). However, all the append function does is loop through the pairs of the other map anyway. This functionality can just easily be created on its own by the BP user. There is nothing complex to consider when doing so either because the BP version is a regular map only, and there is no option to implement a multimap.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.