# 3D Widget Problem: Buttons onclicked does not Work

**URL:** <https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553>\
**Category:** UI\
**Tags:** unreal-engine, Widget, question\
**Created:** [November 16, 2020, 11:35am UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553 "2020-11-16T11:35:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![GablerGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GablerGames](https://forums.unrealengine.com/u/GablerGames)\
**Post date:** [November 16, 2020, 11:35am UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/1 "2020-11-16T11:35:20Z")

</div>

Hello everybody,

i have a problem with the click on my buttons.  
I know many people have this problem, but no thread helped me.  
Button hovered works fine. Only the click does not work.

I have a plane with my 3D widget with 5 Buttons to switch to another cams.  
Following option i have tried to fix it:

- Added Hardware Input  
[https://forums.unrealengine.com/filedata/fetch?id=1832250&d=1605257536](https://forums.unrealengine.com/filedata/fetch?id=1832250&d=1605257536)

- Pointer is added  
[https://forums.unrealengine.com/filedata/fetch?id=1832251&d=1605257558](https://forums.unrealengine.com/filedata/fetch?id=1832251&d=1605257558)

- Show Cursor(tested also with “Input UI and Game”)  
[https://forums.unrealengine.com/filedata/fetch?id=1832252&d=1605257689](https://forums.unrealengine.com/filedata/fetch?id=1832252&d=1605257689)

- My Collision Settings on the 3D Widget Component  
[https://forums.unrealengine.com/filedata/fetch?id=1832253&d=1605257704](https://forums.unrealengine.com/filedata/fetch?id=1832253&d=1605257704)

- Tested change the Button with pressed

- Interaction Distance tested with 5000

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 16, 2020, 12:13pm UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/2 "2020-11-16T12:13:37Z")

</div>

> i have a problem with the click on my  
> buttons.

&

> Interaction Distance tested with 5000

You do not need a Widget Interaction component for your mouse to interact with a widget component. The Widget Interaction component provides a simulation layer for the input.

Do you need a Widget Interaction component for something else than mouse clicks? Can you confirm this is not for mouse clicks?

---

<div class="post-metadata">

**Author:** ![GablerGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GablerGames](https://forums.unrealengine.com/u/GablerGames)\
**Post date:** [November 16, 2020, 12:32pm UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/3 "2020-11-16T12:32:58Z")

</div>

ok i have deleted the “Widget Interaction component”.

Here: [https://www.bilder-upload.eu/upload/1b0dd3-1605529773.png](https://www.bilder-upload.eu/upload/1b0dd3-1605529773.png)

I want change my Cams on a Plane with a Widget. Hovered is not working now, if i delete the “Widget Interaction component”.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 16, 2020, 12:50pm UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/4 "2020-11-16T12:50:58Z")

</div>

> Do you need a Widget Interaction  
> component for something else than  
> mouse clicks? Can you confirm this is  
> not for mouse clicks?

You did not answer my questions so can you at least tell whether it’s safe to assume that your _Input Action Interact_ is not a left mouse button but a keyboard key instead? Or something else?

As in, you’re pointing the gun at something and wish to click on a widget component’s button; or you’re using a camera / screen centre to guide the interaction.

Also, the linked image is _access denied_.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 16, 2020, 12:59pm UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/5 "2020-11-16T12:59:59Z")

</div>

I’m simply trying to understand what you’re trying to achieve. You’ve included a screenshot where you show the mouse cursor; if you’re after a classic mouse-widget interaction, you do not need an interaction component.

If you wish to point at something with the mouse and then use another input _to simulate a click_, then you do need an interaction component.

---

<div class="post-metadata">

**Author:** ![GablerGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GablerGames](https://forums.unrealengine.com/u/GablerGames)\
**Post date:** [November 16, 2020, 1:18pm UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/6 "2020-11-16T13:18:31Z")

</div>

I walk into a TriggerSphere and start it with Begin Overlap.  
I only want click with left Mouse to use the Buttons.

Here my Widget:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/a/ffa75b9fcae4d4ade699c66f771d2fc6b427fbba.png)

---

<div class="post-metadata">

**Author:** ![GablerGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GablerGames](https://forums.unrealengine.com/u/GablerGames)\
**Post date:** [November 16, 2020, 1:20pm UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/7 "2020-11-16T13:20:21Z")

</div>

I had only used the “interaction component” because i read from Thread i need to test it

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 16, 2020, 1:35pm UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/8 "2020-11-16T13:35:42Z")

</div>

> I only want click with left Mouse to  
> use the Buttons.

In this case, the only change needed is enabling Receiving Hardware Input on the widget component, the rest is at default settings:

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/e/6fe78c4716dbd1b9f6ea988d0165944ecbda3b35.gif)](https://gyazo.com/686ac1d34d8dda16b80ac482f352a503)

 ![322194-screenshot-2020-11-16-133656.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/d/57d0bb1e03cc3fe5e2f5659f6c783677a35ef235.jpeg)

The above is without the interaction component as we can use the mouse, no need to simulate it. So the question is what else you’ve got there going on that could interfere?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 16, 2020, 1:40pm UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/9 "2020-11-16T13:40:27Z")

</div>

If you’re clicking those, what is the InputInteract for then? One thing that could prevent an interaction like this but still display the Hovered behaviour is Input Consumption.

If you’re Left Mouse Clicking those buttons, do you use the Left Mouse Button for anything else, in another blueprint, perhaps in the Level Blueprint? The LB can easily steal priority and consume input.

You could _test it_ by switching to `Input Mode UI Only`; this will prevent the player controller from consuming input but will still allow you to use widgets.

---

<div class="post-metadata">

**Author:** ![GablerGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GablerGames](https://forums.unrealengine.com/u/GablerGames)\
**Post date:** [November 17, 2020, 8:44am UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/10 "2020-11-17T08:44:18Z")

</div>

Link from my first post 🙂 i have added Hardware Input

[https://forums.unrealengine.com/filedata/fetch?id=1832250&d=1605257536](https://forums.unrealengine.com/filedata/fetch?id=1832250&d=1605257536)

---

<div class="post-metadata">

**Author:** ![GablerGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GablerGames](https://forums.unrealengine.com/u/GablerGames)\
**Post date:** [November 17, 2020, 8:51am UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/11 "2020-11-17T08:51:51Z")

</div>

Hovered is not more display because i delete the Widget Interaction component

---

<div class="post-metadata">

**Author:** ![GablerGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GablerGames](https://forums.unrealengine.com/u/GablerGames)\
**Post date:** [November 17, 2020, 8:54am UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/12 "2020-11-17T08:54:54Z")

</div>

InputInteract was only for the pawn, but i deleted it with the Widget Interaction component

---

<div class="post-metadata">

**Author:** ![GablerGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GablerGames](https://forums.unrealengine.com/u/GablerGames)\
**Post date:** [November 17, 2020, 9:35am UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/13 "2020-11-17T09:35:15Z")

</div>

“Input Mode UI Only” dont fix it

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 17, 2020, 9:39am UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/14 "2020-11-17T09:39:41Z")

</div>

The behaviour I demonstrated in the animation is the _default_ behaviour with just the _Receive Hardware Input_ enabled. You need _nothing else_ to interact with a 3d widget’s button + mouse click. Perhaps you’ve modified the behaviour of the button itself?

I do not know what else you’ve got going on in your project, what other interactions you’ve scripted. Consider testing it in a _clean_ project:

- create a widget with a button
- embed it in a widget component and enable _Receive Hardware Input_
- drag the actor with the widget into the world

That’s pretty much all it takes.

---

<div class="post-metadata">

**Author:** ![GablerGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GablerGames](https://forums.unrealengine.com/u/GablerGames)\
**Post date:** [November 17, 2020, 9:44am UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/15 "2020-11-17T09:44:11Z")

</div>

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/5/7452146118954bdadc7ef3e293a06e892b925d5e.gif)

I tested “Input Game and UI” and “UI only”

---

<div class="post-metadata">

**Author:** ![GablerGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GablerGames](https://forums.unrealengine.com/u/GablerGames)\
**Post date:** [November 17, 2020, 10:18am UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/16 "2020-11-17T10:18:08Z")

</div>

\*\*

Widget:

\*\*

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/a/c7a1270fc020c3ce9a7d7aa159a5bedad4dc1e89.png)

\*\*

Event Graph:

\*\*

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/8/1b87ec056d68aed70283deba4b583e3803c69518.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 17, 2020, 10:26am UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/17 "2020-11-17T10:26:51Z")

</div>

As I said, test it in a clean project with minimum setup. No dispatchers, no interfaces, just a Print String to confirm things are working.

From the picture you’ve attached, how the heck is anyone supposed to figure out what else you’ve got going on. Something is not working, keep narrowing it down until you identify the culprit.

* * *

You originally said:

> Only the click does not work.

If you put a print string above, does it Print? Because that would mean that the Click _ **does** _ work and we’ve been having this exercise for nothing… In which case you’d need to look at the way you register the dispatchers rather than at how input is processed.

---

<div class="post-metadata">

**Author:** ![GablerGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GablerGames](https://forums.unrealengine.com/u/GablerGames)\
**Post date:** [November 17, 2020, 10:51am UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/18 "2020-11-17T10:51:25Z")

</div>

In a clean project the Buttons are working.  
I cant find the problem… searching 8 Days…

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/c/8fcb3dd49bd2a9de34fc3213dbea49c1f831d83f.png)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/b/bebb28f2334672e0cc8cd513211bcb86e8730793.png)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/9/6a9921eae853a13d63c7176ae4279e608c495778.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 17, 2020, 10:54am UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/19 "2020-11-17T10:54:05Z")

</div>

The images are not working.

> In a clean project the Buttons are  
> working.

That’s great. Thanks for testing it out. To clarify: you can observe the hover behaviour (button reacts to cursor moving over) but when you click, nothing happens, right?

And you’ve removed the interaction component?

Could you show the hierarchy of the widget?

---

<div class="post-metadata">

**Author:** ![GablerGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GablerGames](https://forums.unrealengine.com/u/GablerGames)\
**Post date:** [November 17, 2020, 11:02am UTC](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553/20 "2020-11-17T11:02:29Z")

</div>

no the hover behaviour dosnt work, because the “Widget Interaction component” is deleted.  
Without “Widget Interaction componen” i dont get the hover behaviour.

[Next page](https://forums.unrealengine.com/t/3d-widget-problem-buttons-onclicked-does-not-work/474553.md?page=2)
