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!

2 Likes

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:

https://answers.unrealengine.com/questions/337525/how-to-delete-object-using-blueprints.html

1 Like