Forum rules - please read before posting.

Dragging stackable items creates huge item count text overlay

I'm using Unity UI prefab for my Inventory. If an item is stackable and has a count of more than 1 it's displayed correctly(number on top of the sprite). But as soon as I select this item, in other words, when the cursor changes to this item's texture, a huge text of it's count appears on top of the cursor.

I would need a pointer to where I can change the font size of it.

Comments

  • The font and size of the "item count" text is based on the settings given when the Inventory menu itself has its Source set to Adventure Creator. You can temporarily switch back to this mode to get the font and size correct for that mode before switching back to Unity Ui Prefab.

    Alternatively, you can set the font / size through script by hooking into the OnMenuElementClick event:

    http://pasteall.org/1434043/csharp

  • Worked like a charm, 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.