How to Make a Widget Pressable for a Mobile Game

I’m trying to add a shooting mechanic for my mobile game. I’ve created a button widget and putted it in my screen without any problems. Now I want it to work like this:

- While HOLDING that button, I want to be able to shoot.

How can I achieve this?

Thanks for the help!

Screenshot 2024-09-17 061916

Hi.
For the game controls, you would add an input action. For the UI widget, you have the option for Pressed Event.

Thanks for that!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.