How do I modify the values found by the map container?

Only the exposed data pins will be modified.

2 Likes

Hey there @Mirro1871! Everynone beat me to the full demonstration, but all I have to add is that the Add node is an overwriting command if used on the same key. Which is why it works here.

Which is why it works here.

To add even more - Find fetches a copy of the struct, so pushing the data back into the original container is a must. If it was just a single struct (top), Set Members would work just fine:

But the bottom bit will not work, the For Loop copied data and we’re making changes to the copy, accomplishing nothing.

sad programming noises :face_holding_back_tears:

2 Likes

How to properly remove elements in the blueprint when the Map loops?