Forum rules - please read before posting.

How to change position of display item count in inventory?

How to change position of number of items in one inventory slot when carrying multiple in InventoryBox menu? Currently this number is displayed in the middle of the item's icon and it seems there is no options to adjust it's position or alignment. I also checked menu scripts but it's not obvious for what should I look for.

Comments

  • Switch the Cursor Manager's Cursor rendering field to Unity UI, which will cause it to rely on a Unity UI prefab (CursorUI, by default) for both cursor graphics and the item count text.

    To display and set the position of this text, open up the CursorUI prefab and add a Text (or TextMesh Pro equivalent) component as a child object, reposition/style as needed, and then assign it in the root's CursorUI Inspector.

  • I don't use cursor at all in my interface, in Cursor manger main cursor settings->Display cursor is set to 'never'
    What I'd like to change is the position of the number displayed as static value over icon in inventory.
    I'm using AC Inventory. Look at attached images.
    https://ibb.co/q7YQXxd
    https://ibb.co/mXhgNLS

  • Switch to Unity UI for your Menu's Source (see this tutorial for details). As with CursorUI, the item count is then displayed within a Text component - which you can reposition as necessary for each item slot.

  • edited December 2024

    All right, I've reworked it in Unity UI and it works - I can adjust text position. Although I kinda liked native AC Inventory menu, I feel more confident when using it.

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.