|Topic was automatically imported from the old Question2Answer platform.
I came across the built-in Reference type and as I understand it I think it would suit one of my needs. But I would like to check if I have understood it right. Here is my scenario:
I have a class InventoryItems (weapons, armor, etc) that are shown in various views (shops, drops, inventory, equipped inventory, etc). Items are always represented visually by an Item-scene which holds a reference to the InventoryItem. InventoyItems themselves are never in the scene-tree. Is this a good case to let InventoryItem inherit from Reference? The way I understand it is that if an InventoryItem is no longer used it will automatically be removed from memory and I would not have to free it myself like if it was an Object type.