button that shows value when mouse is on it unity code example
Example: unity left mouse button
//Key Code in the Input Project Settings is "mouse 0"
Input.GetKey(KeyCode.Mouse0))
//Key Code in the Input Project Settings is "mouse 0"
Input.GetKey(KeyCode.Mouse0))