Destroy an Object Blueprint Class

Good Evening everyone!

I’ve a little issue with the Object class. I’ve created a customized class parented to Object (NOT Actor) because I don’t need to spawn anything in the map. Now I’ve a problem, I can’t find a way to destroy the Object. Oviously I can’t call the destroy actor function (as inerith in actor class I guess).

Someone has a solution?

Thank you!

You want to null out the object’s value so it can be garabage collected. You can’t control the time an object is auto deleted (garabage collected) as of now without custom C++. Said object should delete eventually if you null it out correctly.

Links to Other Answers: