Basic Question, I have a GUI window; with a text displayed as “Inventory” currently its sitting out of the region and need to move it where I’d like… my code is as follows:
if (Display_Inventory_Window)
Inventory_Window_Rect = GUI.Window(Inventory_Window_ID, Inventory_Window_Rect, InventoryWindow, "Inventory", "InventoryWindow");
and
if(cnt < Inventory._Inventory.Count)
{
GUI.Button(new Rect(22.5f + (x * Button_Width), 39 + (y * Button_Height), -2.5f + Button_Width, -2.5f + Button_Height), Inventory._Inventory[cnt].Name);
}
else
{
GUI.Label(new Rect(22.5f + (x * Button_Width), 39 + (y * Button_Height), -2.5f + Button_Width, -2.5f + Button_Height), (x + y * Inventory_Columns).ToString(), "Inventory Slot Empty"); // Inventory BOX SLOTS HERE
}
cnt++;
}
Greatly appreciated!!!