simple inventory

Hey, so im trying to make a simple inventory for a game i am making for class. the idea is i want to , on a mouse down, pick up a pair of wire cutters and then put a small pic in a inventory boy. my problem is i have not used any gui functions within unity and i really have no idea how i could accomplish this, any help ? thanks alot

Hi, welcome to the forum!

A SelectionGrid control might be good for this. If you haven’t used the Unity GUI stuff before, you’ll probably want to look at the GUI reference, but it’s really not very complicated. The basic idea is that each GUI control is explicitly drawn each frame by calling one of the GUI functions.

A SelectionGrid takes an array of items (strings, textures, etc) and displays them in a grid pattern. Adding a new item to the grid is a matter of updating the array.

thanks alot im gonna try that !!