DestroyActor vs SetVisibility for deleting items picked up

I’m creating inventory system and have a question. Which node is better DestroyActor or SetVisibility for deleting an item object on a level when a player picks it up?

I think that either node can do that, however I don’t know which is more suitable from the view point of performance and etc.

Thanks.

It depends on whether you still need functionalities and properties from your Actor once you’ve picked it up, or, in other words, on whether you’ll still reference that Actor once you’ve picked it up.

If all that happens is that your Actor gets translated into a quantity in your inventory (ie. you’re adding a coin) just Destroy it, you’ll be freeing resources and be better performance-wise.

I see, thanks a lot!