4.9 UI swallows mouse events
I just upgraded to 4.9 from the latest 4.8. Different from 4.8, 4.9 the UI swallows mouse events, even if there is no visible widget. This menu is composed of several UserWidgets, all their canvases cover the whole screen. The lamp actor in the middle should receive OnBeginCursorOver(), OnEndCursorOver() and OnClicked(), which is not happening anymore. Worked perfectly yesterday with 4.8. If I hide the whole menu (SetVisibility(ESlateVisibility::Hidden) ) the messages come as expected.
Please see the attached image.
asked Sep 01 '15 at 05:14 PM in Bug Reports
After looking over your project I was able to find that this issue you are are experiencing (in the project provided) is due to the widget being set to visible. The canvas panel by default is set to "Self hit Test invisible" This means that it is "visible" to the player but only as art (does not consume click events) and that it only effects itself (not its children). This means that when you set the widget to visible (as seen in the screen shot from your project below) it will set all widgets in the widget blueprint to "Visible" this includes the canvas panel. The "Visible" setting allows widgets to interact with the cursor. This means that it will then consume mouse inputs. You will need to make sure that the canvas panel is set to "Self Hit Test Invisible" to avoid this problem. I hope that this information helps.
Issue is caused by:
Make it a great day
answered Sep 03 '15 at 02:38 PM
Rudy Q ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here