Download

Setting up multiple object names

Hey all, i am quite new to the unreal engine and blueprints.
I have created a blueprint that add some cubes to special places on my level when i press “J”, this all works perfectly.The Macro just calculates the position of the cubes. When I press “J” again i want that all of those cubes get destroyed , but the problem is that only the last created cube gets destroyed. Its ofcourse obvious why only the last one disappear, but i dont know how to fix it. How can I set up different names for the different cubes or how do i save the data in an array and then destroy them with passing through the whole array? I hope someone can understand and help me

b89319e9f098304ce7e2cd95f4a908629387792a.png

Found a solution!