Forum rules - please read before posting.
Tech questions during the weekend? Drop in on the community Discord channel!

Displaying item count in a Unity UI inventory bar

I'd like to show icons and count in the inventory bar. ie: A coin icon and a coin count. I know I can add a text child to each slot. Just not sure what best method is to update the text field with the count.


  • edited February 15

    If a UI InventoryBox element has a Text component attached as a child, then the count should be displayed automatically.

    How it's displayed exactly is based on the element's Display type property. If set to Icon Only, then the Text component will be used just for the count value. If set to Icon And Text, then the Text component will be set using the format "Item name (count)".

  • Thanks!!!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.