Is there any way to fire OnClicked event, when I press RMB on a UMG Button?
Right now it fires only when i press Left mouse button, so i have to compare cursor position with button pos&scale in Character. Its not the best way to make, but I didn’t find any other way to do this yet.
I’m also interest in OnRightClick Event, I’m currently using hover + right click event dispatcher, however when I right click and drag from one widget to another it thinks both are hovered.
There is no “Rightclick Event dispatcher” I created a custom event dispatcher in my controller that’s fired off on right click. Then each widget receives the custom event dispatch it then checks if it’s “hovered” If true it executes that it’s been right clicked.
You can use “IsMouseButtonDown” upon the “Mouse Event” to see exactly which key triggered the event. This allows you to filter depending on if it is left or right.
On drag detected, but change the parameter from left mouse button to indicate that it is the right mouse button you are interested in. This works as intended. It works well. You can click and drag with left mouse, middle mouse, right mouse, ThumbMouseButton, ThumbMouseButton2, and also any of the KB keys…
I just made a boolean activate on right click on my player controller and deactivate on release, then cast to my player controller to get the boolean for the right click function, this way actually works, all the ones above this dont work anymore.