Place GUI Label on position of image help!

I’m trying to add a counter to my inventory ex. (you right click on a potion and the number that you have goes down) I’m having trouble placing a label on the gui image itself on my inventory screen.

the first image is what is looks like now
the second is where I’d like to add the label
and the third is where I’d like to have the label follow if moved
3192936--243895--Inventoryex1.JPG 3192936--243896--Inventoryex2.JPG 3192936--243897--Inventoryex3.JPG

This is literally just parent/child stuff. Just set the UI.Text as a child of the UI.Image.

Don’t spam tags. I removed them all since none of them applied to this post.

–Eric

Are you using the Canvas UI System? If so, generate Text Components and make them children of the item images.
Every time you update the item count, you should check whether the count is 0, if that’s the case, disable the Text Component.

Figured it out, in the code where I draw the inventory I put a if statement that says if the item in the slot is a consumable item then place a gui.label on it and in the code where it decides if I can use the potion or not I added the counter for the stack so when I click a potion the stack number in my inventory updates

1 Like

check the above reply