Inventory Pro


As the name implies a wrapper wraps an Inventory Pro object / item. The UIItemWrapper wraps UI code around the InventoryItemBase, the standard item type. InventoryItemBase: Default abstract inventory item with no connections to UI elements.

UIItemWrapper: An Unity UI specific implementation that triggers the InventoryItemBase's actions triggered by UI elements such as the click of a button.

When creating custom item types, make sure to extend of the InventoryItemBase (or any of it’s parents), that way UI code stays separated, and will remain functional in case of UI changes.