Version: UE4.11.2 (Launcher) (Did not occur on 4.9 - 4.11.0)
Platform: Windows10
Occurs in Blank Project? Yes
After updating the editor to UE4.11.2, some widget functionality I had triggering ‘On Mouse Enter’ no longer functions correctly. I was able to track this down to when the mouse is locked to the client window (Which is apparently now by default or came along with another bug fix) so when pressing Shift+F1 and releasing the mouse, it began functioning correctly again.
Additional notes:
- ‘On Mouse Leave’ triggers correctly when the mouse is or isn’t locked to the game window which makes me suspect this is a bug.
- ‘On Mouse Enter’ does trigger when the mouse is locked to the game window, however this is ONLY when the mouse enters and a mouse button is currently being pressed.
- Setting Input Mode Game and UI (Lock Mouse = False, Hide Mouse = False) in the player controller also fixes this issue (But this still looks like a bug)
Steps to Repro
- Start a Clean project. e.g. Blueprint Top Down Template.
- Create a new Blueprint widget.
- In the new Widgets ‘Designer’ window, add an image.
- In the Widget Graph, add ‘Event On Mouse Enter’ and a Print “Mouse Entered!”
- In the Player controller on Event Begin Play, create your new widget and add it to the players screen.
- Play in a standalone client (Mouse Locked to game window) and mouse over the Image. No print will occur.
- Press the mouse button down, and again mouse over the image. Print will occur.
- Press SHIFT+F1 (Mouse Unlocked to game window) and again mouse over the image and observe.
This issue became apparent when running the client in standalone mode, as the mouse is not locked when running new PIE windows. There are no logs or errors when this occurs.
Thanks!