x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.15
Tags:
more ▼

asked Mar 08 '17 at 07:18 AM in Using UE4

avatar image

hypersapien
179 34 28 40

avatar image devast3d May 04 '17 at 09:38 AM

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

avatar image hassan_UE May 04 '17 at 10:17 AM

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.

avatar image devast3d May 04 '17 at 10:19 AM

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

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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...

more ▼

answered Jun 10 '17 at 08:35 PM

avatar image

apsodi
20 2 2 8

avatar image cloganart Aug 09 '18 at 05:16 PM

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.

avatar image amrgharz Oct 04 '18 at 02:32 PM

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

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question