so i have this script a toolbar script but what i want is that when you click on a toolbar i want a new gui to open where i can put text in
This is the toolbar script
var toolbarInt : int = 0;
var toolbarStrings : String[ ] = [“Toolbar1”, “Toolbar2”, “Toolbar3”];
function OnGUI () {
toolbarInt = GUI.Toolbar (Rect (200, 10, 250, 100), toolbarInt, toolbarStrings);
}
This is the script i would like to open it:
// Draws a box of the size of the screen.
function OnGUI() {
GUI.Box(Rect(50,75,500,500),“TROOLOLOL”);
}
cemC
3
You can use GUI.Layout. it can divide the gui s for a grid. if you use it for making an inventory or smth like that , you will browse this page;
http://forum.unity3d.com/threads/48229-RPG-INVENTORY-SOURCE?highlight=RPG+inventory
it can be very helpful about GUI scripting in the games.