Hi guys.I did gui button that have icon.Now I want to if mouse enter button gui label be visible.But if mouse exit button gui label be not appear.Thank you in advance.
you will need to have a bool activated if the mouseposition is in the rectangle of the button
bool isAboveButton = false;
if(GUI.Button(yourRect,"your button",youicon.png))
{
}
if( inside(input.mouseposition, yourRect) ) // note inside as your function to x and y will be between x and x+width, y and y+height
{
isAboveButton = true;
}
if(isAboveButton)
{
GUI.Label(...
}