Hi there, I’m attempting to make a procedural world using a blueprint actor, at the moment it’s just a soil piece with a collision volume around it. I’m spawning the blueprint procedurally in order to make a field from within another blueprint.
Here’s how my blueprint that spawns the soil looks like:
Now I need a way to interact with each of those actors individually so I can make changes like removing it, moving it around, changing the mesh… and so on. First I wanted to find out how I can delete all actors, however getting the return value and pass it to the Destroy Actor node only makes the very last actor disappear, all others remain.
How can I get access to every spawned actor individually?
Make an array of all spawned actors. Just add them after spawn to the array. Then make a “for each loop” to destroy them. If you want to interact with a specific one make “get” and take use the index of wished bp. Is this what you meant ?
Yes this would be exactly what I mean…
In fact I thought of it as well however this here doesn’t seem to work, it still only deletes the last actor not all of them!