Can press or release a button with WidgetInteraction component but can't click

Hi everyone !

I’m trying to use the WidgetInteractionComponent to interact with some screens in my game. I can trigger the press and release event of a button (hover and unhover work too) but the click event is not triggering. The UI is in world space, in a WidgetComponent of a BP, the “Receive Hardware Input” option is unchecked. Is this the expected behavior of the WidgetInteractionComponent or am I missing something ?

I’m currently using the Release event so I can continue to work on my project, but the release event triggers even if the cursor is no more on the button

Thanks !

Hi @Metalbob ,
Here’s the documentation on how WidgetInteraction works, along with a couple of tutorials that can help you solve your current issue and give you a base to scale it further if you decide to

Documentation

Learn Unreal Engine Tutorials for Widget Interaction

Youtube Tutorial : Widget Communication

If you can’t figure it out, let me know and I’ll see if I can give you a hand, and we’ll look for a solution.

Thanks for your answer !

I took a quick look at what you shared. I implemented it in a similar way as the youtube tutorial and the Unreal Engine 4 Arch-viz Tutorial from the tutorials list, as you can see here:


(I also tried by setting the value of the Key parameter in the Press and ReleasePointerKey nodes manually)

The WidgetInteractionComponent is a child of my first person character camera and is set like this:

but still my button doesn’t trigger its OnClicked event but it triggers OnPressed and OnReleased.