The blueprint spawns an emitter. So, I would also like to delete the emitter.
I want to know how to use the get all actors of class node to delete all actors of that class via button widget click.
I tried a for loop and for each loop, but it doesn’t delete the emitter, it only deletes the blueprint that spawned it.
Seems like it should work. The first index for each for loop should be 0 since arrays start at 0. Maybe that’ll help?
I changed it to a for each loop anyway for simplicity, but still same result. I don’t know how to delete the emitters.
I can delete the emitter inside the bp spawning it, but I can’t delete it using get all actors for some reason.
you can try to destroycomponent, to destroy the emitter, then destroy the actor