I have seen that now in the UMG button component we have three events: OnClick, OnPress and OnRelease.
This is great but… do the button component support being clicked with any mouse button?
In that case… how could i detect the which mouse button i’m pressing when i click a button component?
And, in the case the button component don’t support being clicked with any mouse button, could this be implemented in the future or maybe it is difficult?
If you need a more custom button, make your own. Every user widget has access to every low level mouse event (Click the Override button in the function list), you can make a button that’s only clickable when standing by the grey stone when the thrush knocks if that’s your thing.
The button widget is only meant to satisfy the needs of a standard simple button.
I don’t know if i have understood you correctly, but (correct me if i’m wrong), these functions (OnMouseUp, OnMouseDown, etc …) belongs to the UserWidget you create when you create a new widget blueprint, right?
I mean, if i create a new widget, and place a button in the canvas, if i override the OnMouseDown (for example), the event will fire when i click a mouse button while the mouse is over my widget area, not the button component, right?