- Home /
What is a good component to use for a GUI inventory display?
So, far I got my inventory system to work out nicely, I am trying to go through some GUI docs to figure which is best suited to be used as an inventory GUI. Example, would be a Diablo like inventory system. Where some item take up multiple slots and I will handle where items can be allocated, but what is a robust component which can make this simpler for me.
My idea thus far. I tried keeping this flexible as possible where I can use any GUI texture for my background of the inventory and then have the slots adjustable through the inspector as to where the items would be placed. So 0th location top left and n-1 th location would be bottom right.
I'm not offering this as an answer, but more of a comment. I'm a fan of NGUI. If you're not tied to Unity's GUI, NGUI is free for noncommercial use (http://forum.unity3d.com/threads/124032-NGUI-Free-Edition), and not very expensive for commercial use.
It even includes a working inventory system/tutorial: http://www.tasharen.com/?page_id=896
Thanks for the post, awesome UI I will surely check it out, but for right now I just need a simple GUI inventory working right now. Will definitely come back to that.
Answer by MorphingDragon · Apr 02, 2013 at 04:44 PM
In my experience Unity's builtin GUI system is better for hacking prototyping than for making finalized GUIs. To get any type of flexibility you need to do all the textured quad work yourself or use a piece of middleware like ScaleForm or NGUI.
As a quick solution, I would probably use GUI DrawTexture. Or even go to the extent of managing textured planes in a scene just to get mouse events for free.