I’ve no problem deleting an actor.
I want to find out when one of my actors is being deleted by the user. So in C++ the BeginDestroy function is called when an actor is being deleted. But there doesn’t appear to be a function or callback in blueprints that lets you know when an actor is being deleted.
Thanks Raildex_ appreciate the post. Event end play is the best so far, but it never gets fired when an actor is deleted in the editor, know of any others?
Nope, I faced the same thing while developing my C++ plugin. I only found a way to bind a custom function to an event called “OnLevelActorDeleted”.
That event is not available in BPs and needs C++. No idea if it’s a good idea to bind that in the Actor that is actually getting destroyed.
Haven’t reworked it yet, so I can’t tell you a better way.