# Widget button hover works but not click

**URL:** <https://forums.unrealengine.com/t/widget-button-hover-works-but-not-click/473663>\
**Category:** UI\
**Tags:** button, click-event, unreal-engine, mouse-event, Widget, question\
**Created:** [October 28, 2020, 10:28pm UTC](https://forums.unrealengine.com/t/widget-button-hover-works-but-not-click/473663 "2020-10-28T22:28:40Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheOneBobby](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheOneBobby](https://forums.unrealengine.com/u/TheOneBobby)\
**Post date:** [October 28, 2020, 10:28pm UTC](https://forums.unrealengine.com/t/widget-button-hover-works-but-not-click/473663/1 "2020-10-28T22:28:40Z")

</div>

This is my first time making a widget and I’m trying to make a super simple one, just a button. However, when I attach the widget to an actor and try to press it, it doesn’t register any click events but it does register hover events and responds to those.

I have my widget blueprint which looks like this:

 ![320461-widget.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/2/ab2027ed6bdd61ff105fe4a0c029b3d065f1b852.png)

I then have the mouse events set up like so:

 ![320462-events.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/2/9b2010fc57244ffeea08e0b2086c585baf37e2e7.png)

In my scene I just attached a widget component to an empty actor:

 ![320463-widget-actor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/8/01806bc42ec3d133feecc5e6e0f4924ebfd06371.png)

And lastly I added a WidgetInteraction component to my player:

 ![320464-player.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/e/71e6c62385ea8c2c91431f75f26cf3e7cd9b94f6.png)

Now when I hit play and test it out, I get the hovered message but I can never get the click message when I click on the button and I’m not sure why.

 ![320465-test.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/6/606e5d2221e460569ea273a38de83083dae06df8.png)

---

<div class="post-metadata">

**Author:** ![Ruffhaus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ruffhaus/32/1194663_2.png) [@Ruffhaus](https://forums.unrealengine.com/u/Ruffhaus)\
**Post date:** [October 29, 2020, 1:12am UTC](https://forums.unrealengine.com/t/widget-button-hover-works-but-not-click/473663/2 "2020-10-29T01:12:17Z")

</div>

Have you tried changing the input mode, I find the whole thing quite confusing myself, but give this a go.

 ![320482-inputmode.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/7/877aa8d28aa1401a3134f8488604de8e988ff208.png)

---

<div class="post-metadata">

**Author:** ![DieggoMasamune](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dieggomasamune/32/953152_2.png) [@DieggoMasamune](https://forums.unrealengine.com/u/DieggoMasamune)\
**Post date:** [October 29, 2020, 3:37am UTC](https://forums.unrealengine.com/t/widget-button-hover-works-but-not-click/473663/3 "2020-10-29T03:37:01Z")

</div>

Yeah, i’m with the same problem, i tried this solution but no sucess so far 😕

---

<div class="post-metadata">

**Author:** ![ahsan4313](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ahsan4313](https://forums.unrealengine.com/u/ahsan4313)\
**Post date:** [February 15, 2021, 5:57am UTC](https://forums.unrealengine.com/t/widget-button-hover-works-but-not-click/473663/4 "2021-02-15T05:57:26Z")

</div>

facing same issue. Anyone with the solution?

---

<div class="post-metadata">

**Author:** ![FatalBreak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FatalBreak](https://forums.unrealengine.com/u/FatalBreak)\
**Post date:** [February 15, 2021, 8:38pm UTC](https://forums.unrealengine.com/t/widget-button-hover-works-but-not-click/473663/5 "2021-02-15T20:38:28Z")

</div>

use the player controller to Set show mouse cursor. If you’re not wanting to use the mouse cursor then you could add a custom event to simulate the button press. Wherever you have your player input, controller or character, you could have the on-hovered event cast to that blueprint w/ a reference to a variable there and then you could have a left click input set up to where it attempts to cast to the widget by the reference. If it fails, then it’s not hovered.

Another way would be through a bp interface. you could do a seperate visibility trace on left click and send the WidgetClick interaction to the object hit then in that object, say that when it gets that interaction, do the button click sequence you want. You’ll have to add the interface to the settings in that item to allow for it to pass in though.

---

<div class="post-metadata">

**Author:** ![Leie\_Sistal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Leie\_Sistal](https://forums.unrealengine.com/u/Leie_Sistal)\
**Post date:** [May 1, 2021, 9:27am UTC](https://forums.unrealengine.com/t/widget-button-hover-works-but-not-click/473663/6 "2021-05-01T09:27:15Z")

</div>

I think found the solution:  
in your blueprint select your widget component got to Interaction, tick “Receive hardware input”

 ![337648-image-2021-05-01-112436.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/2/08233dfbbd1fd5815268d91f93b9d214906fe16b.png)

---

<div class="post-metadata">

**Author:** ![Display\_Name0011](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Display\_Name0011](https://forums.unrealengine.com/u/Display_Name0011)\
**Post date:** [May 12, 2022, 7:07pm UTC](https://forums.unrealengine.com/t/widget-button-hover-works-but-not-click/473663/8 "2022-05-12T19:07:50Z")

</div>

was the problem ever solved? im having the exact same problem

---

<div class="post-metadata">

**Author:** ![VL4DST3R](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vl4dst3r/32/482857_2.png) [@VL4DST3R](https://forums.unrealengine.com/u/VL4DST3R)\
**Post date:** [August 14, 2022, 1:44pm UTC](https://forums.unrealengine.com/t/widget-button-hover-works-but-not-click/473663/9 "2022-08-14T13:44:11Z")

</div>

Same here, and i cant seem to find any thread that has an answer.

---

<div class="post-metadata">

**Author:** ![nullmorpheme](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nullmorpheme](https://forums.unrealengine.com/u/nullmorpheme)\
**Post date:** [September 10, 2022, 8:06am UTC](https://forums.unrealengine.com/t/widget-button-hover-works-but-not-click/473663/10 "2022-09-10T08:06:31Z")

</div>

Im using ALS and my solavation was to give the widget interaction an INPUT.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/f/83f7c4dbf41d7a38bb3926006c1a4ffabeb7988d.png)  
Hope it helps! Greets

---

<div class="post-metadata">

**Author:** ![Sublimed\_Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sublimed\_Games](https://forums.unrealengine.com/u/Sublimed_Games)\
**Post date:** [January 4, 2024, 2:58am UTC](https://forums.unrealengine.com/t/widget-button-hover-works-but-not-click/473663/11 "2024-01-04T02:58:02Z")

</div>

This worked for me!

---

<div class="post-metadata">

**Author:** ![Dobacetr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dobacetr](https://forums.unrealengine.com/u/Dobacetr)\
**Post date:** [April 29, 2024, 12:04pm UTC](https://forums.unrealengine.com/t/widget-button-hover-works-but-not-click/473663/12 "2024-04-29T12:04:26Z")

</div>

For potential future reference:

If you are using Mouse position dependent `Press Pointer Event` in an `EnhancedInputAction` `Canceled`/`Completed` context, it does not work. Neither does `Get Hit Result By Under Cursor/Finger *` functions.

If I remember correctly, mouse position is not set in these events.
