- Home /
Storing items in inventory
I have a gui but how do I do things such as picking up and storing items in the inventory gui and being able to use them?
Please do not link me to a pre-made inventory. I do not want that I want to make my own but I need a little help or a tutorial.
Answer by Skuzzbag · Jul 17, 2011 at 09:46 AM
Without providing any code then the theory is this.
In the object that you want the inventory to be in (Player object for example) create an array then add the GameObject references to the items you pick up to it.
Acting upon them is up to you but you could name the pickupable objects with a tag and then find them within the array using the tag name.
Your answer
Follow this Question
Related Questions
In what way can I make a GUI Inventory? 0 Answers
Picking up an object 2 Answers
New Gui 4.6 - How to use new GUI for inventory system 1 Answer
Mouse locked in center 1 Answer
How to pick a weapon of the ground 1 Answer