Shop menu inventory not matching

My guess here is that you are showing the amounts in the player invnetory in one and the amounts in the Shop in the other.
I'm assuming you want to display the amount in the player inventory in both right?
So here you have the ItemDescription with an InventoryAmountItemView which allows you to display the amount of item an Inventory specified by an ID has.
In this case my player Inventory Identifier is 1 so I do it like so.

1711093118811.png


1711093155350.png

On the ItemViewForShop prefab you can replace the AmountItemView by an InventoryAmountItemView to have the same value displayed in both.

On the other had if you wanted to display the amount of items left in the shop (you can make the shop with limited quantity of items) and want to display the same amount both time then you would use the AmountItemView in both the ItemView in the grid and in the ItemDescription instead of the InventoryAmountItemView.

I hope that helps
 
Top