Currency
Create a Currency when an Inventory owner, shop, pickup, or UI needs to store and exchange a named value. Most projects should begin with one root Currency, such as Gold, and add conversion relationships only when players genuinely interact with multiple denominations.
Create Gold
- Open Tools > Opsive > Ultimate Inventory System > Main Manager.
- In Setup, confirm that the intended Inventory System Database is selected.
- Open Currencies.
- Enter Gold beside Add and create it.
- Set Name to the unique value
Goldand assign the Icon used in the editor and runtime UI. - For a one-Currency project, leave Base Currency, Overflow Currency, and Fraction Currency unassigned. Gold is then the root of its own Currency family.
- Set Max Amount only when the Currency Collection should enforce a project-specific upper limit, then verify that limit in Play Mode.
A Currency defines conversion and amount constraints, but it does not hold a player’s balance by itself. A Currency Owner holds a Currency Collection at runtime.

Choose Currency properties
| Property | Use it for | Decision |
|---|---|---|
| Name | The unique database name used to find the Currency. | Use Gold for the standard sample. |
| Icon | The editor and runtime representation. | Assign the same clear Gold icon used by the Currency UI. |
| Base Currency | The less valuable Currency from which the selected Currency is composed. | Leave empty for a root Currency. |
| Base Exchange Rate | The amount of Base Currency equal to one unit of the selected Currency. | Set only when Base Currency is assigned. |
| Max Amount | The maximum amount that a Currency Collection can retain for this Currency. | Use a deliberate project limit and test boundary behavior. |
| Overflow Currency | The more valuable Currency that receives value above Max Amount. | Assign only within the same conversion family. |
| Fraction Currency | The less valuable Currency that receives fractional value. | Assign only within the same conversion family. |
The base direction matters: Base Currency and Fraction Currency must be less valuable than the selected Currency, while Overflow Currency must be more valuable.
Decide between one Currency and a family
Use one root Currency
Use only Gold when prices, rewards, and balances are all expressed in Gold. This keeps Item prices, Currency Owner balances, and UI output easy to compare. No exchange-rate, overflow, or fraction relationship is required.
Use convertible denominations
Create a family only when several denominations represent the same underlying value. The smallest denomination is the root. Each more valuable Currency references its less valuable Base Currency and defines a Base Exchange Rate.
For example, a Bronze > Silver > Gold family can define Silver in Bronze and Gold in Silver. Currencies in the family share the same root, so the Currency Collection can compute conversion through that root. Currencies with different roots cannot be converted to one another automatically.
Use Overflow Currency and Fraction Currency to keep amounts in valid denominations when a Currency Collection crosses a maximum or produces a fractional result. Avoid adding these relationships when the project wants separate, non-convertible economies.
Review Currency relationships
The relationship view shows every Currency in the selected Currency’s family and labels the Root, Base, Overflow, and Fraction roles. It also displays exchange rates. Select a Currency icon in the relationship view to open that Currency.
Before relying on conversion, trace the family back to one root and confirm that every rate points from a more valuable Currency to a less valuable Base Currency.
Right-click a Currency row and choose Duplicate when a new Currency should start with the same parent, exchange rate, icon, fraction/overflow references, and maximum amount. The duplicate is a new Currency identity; rename it and replace every relationship that should not continue pointing to the original family.
Connect Gold to Items, owners, shops, and UI
Set Item prices
Price is Item data, not a Currency property. Declare BuyPrice and, when needed, SellPrice as CurrencyAmounts Item Definition attributes. Set Health Potion, Iron Sword, and Fire Wand to amounts that reference Gold.
The Shop Currency Collection reads the attribute names configured on the shop. When no separate sell value is needed, it can be configured to read BuyPrice for both buying and selling.
Give the player a balance
Add or configure a Currency Owner for the player Inventory. Its Currency Collection stores the Gold balance and performs addition, subtraction, division, and supported conversion.
Display the balance
Use the UI Designer Currency tab to create a Multi Currency View or Currency Owner Monitor. Map Gold to the intended Currency View and bind the monitor to the player’s Currency Owner.
The Currency definition, price attribute, runtime owner, shop, and UI must all reference the same Gold object from the selected database.
Editor checkpoint
Before entering Play Mode, confirm that:
- Gold exists once in the intended Inventory System Database and has the expected Icon.
- Gold has no Base, Overflow, or Fraction relationship in the one-Currency setup.
- The relationship view identifies Gold as the root of its family.
- The player Currency Owner starts with the intended Gold amount.
- The Shop Currency Collection uses the same price attribute names defined by the Item Categories.
- The Currency Owner Monitor or Multi Currency View maps and displays Gold.
Verify shop transactions in Play Mode
- Enter Play Mode and record the player’s starting Gold balance.
- Open the Currency UI and confirm that it shows the same balance as the player’s Currency Owner.
- Buy Health Potion and confirm that the correct Gold amount is removed and the Item is added to the player’s Inventory.
- Attempt the same purchase without enough Gold and confirm that the transaction does not remove Currency or add the Item.
- If selling is enabled, sell an Item and confirm that the balance increases by the configured
SellPrice, or byBuyPricewhen the shop intentionally shares that field. - For a multi-Currency family, test a value at each conversion boundary and confirm that overflow, fractions, and the displayed total use the intended denominations.
Troubleshooting
- Gold is missing from an editor field: Check that the Main Manager and runtime scene reference the same Inventory System Database.
- The shop shows no price or zero: Check that the Item Definition exposes a
CurrencyAmountsvalue, includes Gold, and uses the same attribute name configured by the Shop Currency Collection. - A transaction changes the wrong amount: Check
BuyPrice,SellPrice, and the shop’s buy or sell modifier, then compare the before-and-after Currency Owner balance. - The balance UI is empty: Check the Multi Currency View’s Gold mapping and confirm that the Currency Owner Monitor resolves the intended owner or Inventory Identifier.
- Two Currencies do not convert: Check that both trace to the same root and that every Base Currency and exchange rate points in the correct value direction.
- Overflow converts to the wrong denomination: Check Max Amount, Overflow Currency, and the exchange rate on the more valuable Currency.
- Fractional value disappears or loses precision: Check Fraction Currency and the smallest denomination. Currency Collections maintain valid Currency amounts and can lose precision when a result is smaller than the root denomination.
Related: