public void OnPointerEnter(PointerEventData eventData) { if (!isActive) { image.color = tabControlller.mouseEnterColor; //Debug.Log("this is onpointer enter"); } tabControlller.ButtonMouseEnter(tabIndex); }