[Question] How to destroy an actor properly in C++?

Hi!

The typical approach to deleting actors is simply to call Destroy() and forget about it. It should stop ticking and GC should do the rest. If you have other routes to call into your actor and want to check if it has been destroyed, you can use AActor::IsPendingKill() to test if Destroy() has been called.

We’re not aware of any issues with regard to this code, so I’m interested to hear more about the actor you’re trying to delete. Is it doing any interesting or atypical lifetime management?

Also, I wondered if you could clarify what you mean buy “actually physically delete” and the Delete() method, which I’m unaware of.

Jeff