when mouse pass over a button,the console print some content

when mouse pass over a button,the console print some content

Take a look at OnMouseOver

OnMouseOver is called every frame while the mouse is over the GUIElement or Collider.

function OnMouseOver ()
{
   print("some content");
}