Shop Currency Question

GilbertT

New member
Hello!

I am having trouble using my custom currency in the shop. I have created all the item categories, definitions, and assigned the Buy/sell values to the various items, but it's still displaying the old currency in the Shop.

Any ideas on how I set this up wrong? It would be super helpful!

I have provided images of my setup.

Thank you!
 

Attachments

  • Image20260114155057.png
    Image20260114155057.png
    216.6 KB · Views: 9
  • Image20260114155100.png
    Image20260114155100.png
    409.6 KB · Views: 9
  • Image20260114155102.png
    Image20260114155102.png
    430.5 KB · Views: 7
  • Image20260114155104.png
    Image20260114155104.png
    457.1 KB · Views: 2
  • Image20260114155106.png
    Image20260114155106.png
    200 KB · Views: 4
I see you've set your MultiCurrency View for your player (although it only seem to have defined 2 types of currency to be visible to your player and you have 4 types in your database, is that normal?)


For the shop specifically, we draw the price in the ItemDescritption. The ItemDescription is the same as an ItemView but with extra stuff by default.
The price of the item is shown as a ItemViewModule.

So to make your own currency show up you need to find your shops Menu prefab (and/or the ItemDescription prefab used in your shop menu). And change the MultiCurrencyView component of that itemdescription (most likely a child)

I hope that helps :)
 
Yes I currently only want to use 2 of the currencies I have setup.

I found the MultiCurrencyView but it seems to have the two currencies I want setup. They seem to be displayed properly in the buy/sell sections but the old currencies are being displayed in other sections of the shop.

I have provided some images of the shop:
 

Attachments

  • Image20260121152858.png
    Image20260121152858.png
    444.8 KB · Views: 1
  • Image20260121152902.png
    Image20260121152902.png
    403.3 KB · Views: 1
  • Image20260121153232.png
    Image20260121153232.png
    157.3 KB · Views: 1
The Shop Menu uses MultiCurrencyView components in multiple places.
I see you've updated the total cost MultiCurrencyView, but you haven't updated the other ones:
  • Shop Menu Header (this is a MultiCurrencyView showing you characters money)
  • Big ItemDescription (This shows Both Sell and Buy prices of the item)
  • ShopItemView (this is a prefab) (the Item View for the Shop InventoryGrid have a nested MultiCurrencyView to show currencAmounts attribute)
Tip:
In play mode you can search for MultiCurrencyView in the scene hierarchy. It'll show all the gameobjects with MultiCurrencyViews. From there you can figure out what are the gameobjects you have to edit to your needs, and see which ones are in the scene and which ones are prefabs that are spawned at runtime

I hope that helps
 
Back
Top