var skin1 : GUISkin;
var a1 : boolean ;
var a2 : boolean ;
var a3 : boolean ;
var a4 : boolean ;
var a5 : boolean ;
var a6 : boolean ;
function Start()
{
a1 = true;
a2 = true;
a3 = true;
a4 = false;
a5 = false;
a6 = false;
}
function OnGUI ()
{
GUI.skin = skin1;
GUI.Box(Rect(3,800,808,35), " ");
if(a1 == true)
{
GUI.Button(Rect(3,810,80,35),GUIContent (" START", "click to start "));
a4 = true;
}
if(a2 == true)
{
GUI.Button(Rect(85,810,80,35),GUIContent (" CONTINUE", "click to continue"));
a5 = true;
}
if(a3 == true)
{
GUI.Button(Rect(167,810,80,35),GUIContent (" EXIT", "click to exit"));
a6 = true;
}
if(a4 == true)
{
GUI.Label (Rect (10,100,300,40), GUI.tooltip);
}
if(a5 == true)
{
GUI.Label (Rect (10,400,300,40), GUI.tooltip);
}
if(a6 == true)
{
GUI.Label (Rect (10,600,300,40), GUI.tooltip);
}
}
here my need is i have box over which three buttons are there start,continue and exit when mouse is over the button start i should display click to start when mouse is over the button continue i should display click to continue for that i used tool tip but when mouse is over start button it is displaying correctly but when mouse is over continue button the position of tool tip label remain in the same area as start button