How do I make a UMG button stay "Pressed" after clicking it?

Hello- I am just learning the basics of UMG and widget stuff, and I’m not sure how to best implement this. I understand how to alter the appearance of a button’s up, hover, and pressed states- but what if I want the button to stay in it’s ‘pressed’ state after clicking it (and then return it to it’s ‘up’ state if I click it a second time).

Do I stil use a regular ‘button’, and control this behavior in the graph editor? Or is there some other widget type that already behaves this way? I see there is a checkbox widget, but I’d prefer the appearance of the entire button change when pressed.

Any luck with this? I’m exactly in this situation as you.

You can do a little trick, just change button style , photo, text or anything else to “pressed” after player clicked the button just in the OnClicked event.

Thanks! I hope this will be properly addressed in the future UMG versions :slight_smile:

Use the checkbox. You can select the “Check Box Type” in style. There you select “Toggle Button”.

By the way, the checkbox works also in a way that it changes the appearance of the entire button…

But if you’re making multiple “Checkboxes” and you clicked through, they will all look Checked, won’t they? Gotta figure out the logic for only one checkbox being checked.

The Check Box Is not toggling the action, Just changing the status of the checkbox Itself :frowning:

Anyone trying to do this now you can simply do this and just call the functions where u need

1 Like