OnBeginCursorOver and OnEndCursorOver Only fired when mouse is clicked over static mesh.
Hello, the topic says the main problem. These events get fired only when I have my mouse over my static mesh and when these functions are implemented the OnClicked function doesn't get fired anymore... I have tried to do this with both c++ and blueprint. I can get the OnClicked event working correctly. I have set the bEnableMouseOverEvents to true in my controller and it is the right controller.
Here is my .h code:
And here is necessary parts in the cpp
Getting the controller and doing the settings:
Binding functions to events:
And the functions themselves:
I have tried changing the collision types of my static mesh but it doesn't solve this and I think that CursorOver and EndCursorOver should work if OnClicked works? Anything more I can try or is this a bug?
Finally found the solution. I had to set the visibility of my custom WIDGET to ESlateVisibility::HitTestInvisible. I already had all my texts, buttons etc. set to this inside my widget, but I didn't know that I had to do it for the widget itself.
answered Aug 29 '16 at 03:48 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here