0
Answered

What is the easiest way to show currency as a UI?

Tathunder 5 months ago in Inventory updated by Marti (Lead Developer) 4 months ago 2

What is the easiest way to show currency as a UI?

Unity version:
latest LTS build
Game Creator version:
latest version

Ok, I figured out how to get the currency component working with a text((variable), but when the balance is 0 it displays "null". How can I make it display "0" instead? What am I doing wrong?

Answered

There's an even easier way of doing this, which is using the "Currency UI" component. Simply drop it in and choose the Text component you want. It will automagically sync with the Inventory's currency value and change accordingly.