Hello,
i’ve made a GUI.Toolbar for later use in my Project using the following code :
var ToolbarInt : int = 0;
var ToolbarStrings : String[] = ["First", "Rewind", "Play", "Stop", "Forward", "Last", "Quit!"];
function OnGUI(){
ToolbarInt = GUI.Toolbar(Rect(0,25,Screen.width,30),ToolbarInt,ToolbarStrings);
if(GUI.changed)
{
print(ToolbarInt);
}
}
For some strange reason, the change of the selected Button (ToolbarInt) is a bit delayed and stops responding entirely after a few clicks. How can i solve this?