I just switched to Unity 6, and my UI animations have stopped working. I’m using the IPointerEnterHandler interface and the OnPointerEnter method to animate a custom button. For some reason, the function is only getting called if I’m pressing down any of the mouse buttons and isn’t called otherwise.
Has anyone else run into this before or do you know of any fixes? I’m not sure if it’s specifically Unity 6 but I didn’t have any issues before switching.
cant say its not working for me i made a test script
public class test : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
public void OnPointerEnter(PointerEventData eventData)
{
Debug.Log("Mouse enter");
}
public void OnPointerExit(PointerEventData eventData)
{
Debug.Log("Mouse exit");
}
}
stuck it on a UI item and… it worked for me
I tested it in a build and it worked as it should, so I guess it’s just an editor issue. I can’t think of anything that could make this happen, but I’m glad it works for you! I’ll look into my local mouse settings to see if I have any other software that could be interfering.