Download

Destroy Object

Maybe a silly question, but is there a function in blueprints which destroys objects? Like destroy actor, or destroy component? I’m currently trying to use a custom object class instead of actor components (I have my reasons), I create objects via “Construct object from class” but can’t find a way to destroy them.

You should take a look at the principle of garbage collection: https://wiki.unrealengine.com/Garbage_Collection_Overview
Briefly summarized, in order to delete a UObject from the memory you have to remove all references to this object, then it will be deleted in the next garbage collection cycle.