My canvas contains three buttons and three images. I would like the images to appear when the mouse hovers over buttons.
public GameObject button1;
public GameObject button2;
public GameObject button3;
public Image imag1;
public Image imag2;
public Image imag3;
void Update() {
}
public void OnPointerEnter (PointerEventData eventData)
{
Debug.Log ("The cursor entered the selectable UI element.");
}