MouseEnter and MouseOut Event are called multiple times

Hi all,

I have a problem with certain callbacks of UI Toolkit.
In my project, I am registered to MouseEnterEvent and MouseOutEvent callback of Visual Element. I noticed that when entering the element with my mouse and moving the mouse inside of it, MouseEnterEvent is called multiple times instead of just one. The same applies to MouseOut, which is also called multiple times when the mouse is being moved inside of the element.

I guess this is a bug, since I would not expect that behaviour from the names of these events.

Best regards

Hello,

Please report a bug from Unity so we can follow up on it.

Are you using the new input system? If so, this might be the same issue I described here:
https://discussions.unity.com/t/807139/18

I reported a bug report

1 Like

Hi, yes I’m experiencing the exact same thing! I’m also using the new Input System and now I remember that the problems arose around the time we switched from the old one to the new one in our project.
Thanks for submitting a report. Hope this gets fixed in one of the next few packages.
Do you have a link to the bug report? Can’t seem to find it with the case ID

Here is the link to the report: https://fogbugz.unity3d.com/default.asp?1284910_4ko7qaerljn54iai