Destroy an actor from Widget clicked button
I'm trying to destroy an actor after clicking on a widget button option but I don't know what should be connected to "object" in the cast of the blueprint.
asked Feb 03 '19 at 01:23 AM in Using UE4
the actor your looking to destroy should be in the object pin. basically you need to have a reference to the instance of the actor in the level. so for example lets say you have 3 trees in your level (tree1, tree2, tree3), you would need to tell the destroy actor node which tree you want to destroy.
im guessing that you dont really understand casting. think of casts like a way to identify an actors class, the object in is the actor to be identified.
oh also your calling your destroy actor on tick so as soon as your widget is created the actor will be destroyed. its not going to work as expected i imagine.
answered Feb 03 '19 at 01:32 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here