Hello Everyone Ive been working on an inventory system and am struggling a little bit,
Heres the Code.
the // are the bits that im struggling with.
GUI.Box(new Rect(buttonX-10, buttonY+120, 305, 360),"", boxStyle);
statsScroll = GUI.BeginScrollView(new Rect(90-10, 50+120, 300,360),statsScroll,new Rect(90-10, 50+120, 275, 30+(30*l)));
for(int x = 0; x < playerInv.playerInventory.Count; x++)
{
l = x;
if(GUI.Button(new Rect(90-5, 50+120+(30*x),270, 30), playerInv.playerInventory[x].itemName, textstyle))
{
// the code in here is only called one time per click which is kinda not what i want i need it to be called until another button is pressed to display the next load of infomation, it also needs to be seen in this area GUI.Box(new Rect(buttonX+315, buttonY+120, 315, 360),"",boxStyle)
}
}
GUI.EndScrollView();
#endregion
#region right box(Skill Stats)
GUI.Box(new Rect(buttonX+315, buttonY+120, 315, 360),"",boxStyle);
sorry for the bad wording but cant think of another way of putting it
Thanks in Advance
Joshua Creighton