# Right Click UMG Button

**URL:** <https://forums.unrealengine.com/t/right-click-umg-button/877891>\
**Category:** Blueprint\
**Tags:** unreal-engine, Widget, question, Blueprint, UMG\
**Created:** [April 8, 2023, 8:21am UTC](https://forums.unrealengine.com/t/right-click-umg-button/877891 "2023-04-08T08:21:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zapking9224](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zapking9224/32/1060813_2.png) [@Zapking9224](https://forums.unrealengine.com/u/Zapking9224)\
**Post date:** [April 8, 2023, 8:21am UTC](https://forums.unrealengine.com/t/right-click-umg-button/877891/1 "2023-04-08T08:21:16Z")

</div>

Hi,  
So I’m making a widget system and I want the player to be able to right-click on a button (which is also a draggable button using left click). How would I check if the button was clicked with the right mouse button because it seems like the “On Clicked” event for a UMG button is only for left mouse clicks?

---

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [April 8, 2023, 10:32am UTC](https://forums.unrealengine.com/t/right-click-umg-button/877891/2 "2023-04-08T10:32:18Z")

</div>

you need to write your oen function override for OnMouseDown.

In your BP Graph of the Widget, head over to the Variables panel… above… Macros… and above that… functions…

Don’t add a new function… instead, move the cursor a bit left of the “+” and you find the override dropdown. There, select the OnMouseDown.

in the new OnMouseDown override, take the mouse event and check with a “IsMouseButtonDown” Node, if the right mouse button has been triggered.

if yes, start th event/call the event dispatcher of your desire…

---

<div class="post-metadata">

**Author:** ![EXODST](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exodst/32/1031732_2.png) [@EXODST](https://forums.unrealengine.com/u/EXODST)\
**Post date:** [December 28, 2024, 6:19pm UTC](https://forums.unrealengine.com/t/right-click-umg-button/877891/3 "2024-12-28T18:19:16Z")

</div>

I just want to add that in most cases you want to do this with the on mouse double click function as well, if you don’t it wont let you register right clicking very fast at all which can also lead to right click not even being registered sometimes.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/6/cc6f2f49659b24f90ad0810e2b63028efc5a3240.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/8/378ea02edf5cbf62142345923360e14dc781b89c.png)

---

<div class="post-metadata">

**Author:** ![danrius98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@danrius98](https://forums.unrealengine.com/u/danrius98)\
**Post date:** [January 9, 2025, 1:01pm UTC](https://forums.unrealengine.com/t/right-click-umg-button/877891/4 "2025-01-09T13:01:55Z")

</div>

Thank you so much for this reply, I’ve been banging my head for two days about this issue and you just solved it for me!

---

<div class="post-metadata">

**Author:** ![EXODST](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exodst/32/1031732_2.png) [@EXODST](https://forums.unrealengine.com/u/EXODST)\
**Post date:** [January 9, 2025, 1:32pm UTC](https://forums.unrealengine.com/t/right-click-umg-button/877891/5 "2025-01-09T13:32:11Z")

</div>

You are very welcome, i was really confused about why it wasn’t registering the right click event very fast lol.

---

<div class="post-metadata">

**Author:** ![FLMRL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FLMRL](https://forums.unrealengine.com/u/FLMRL)\
**Post date:** [September 5, 2025, 7:25am UTC](https://forums.unrealengine.com/t/right-click-umg-button/877891/6 "2025-09-05T07:25:59Z")

</div>

Found this the hard way ☹
