for(var z = 0; z < MainInventory.Count; z++)
{
if(GUI.Button(Rect(Screen.width/2, Screen.height/2 + (50 * z), 50, 50), GUIContent(MainInventory[z].Icon, MainInventory[z].Name + "
" + “Sell for " + MainInventory[z].Value + " coins”)))
{
Coins += MainInventory[z].Value;
MainInventory.RemoveAt(z);
}
GUI.Label(Rect(Screen.width/2 + 150, Screen.height/2 + (50 * z), 300, 300), GUI.tooltip);
}
Looks like this:
[Item]
[Item]
[Item]
I want it to be like this:
[Item] [Item] [Item]
[Item] [Item] [Item]
[Item] [Item] [Item]
[Item] [Item] [Item]