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"

Button "replaces" another button when the original button is clicked.

So, I'm trying to Blueprint a button that displays another button upon click, however removes itself to display the other button. I've tried "removing" the first button to display the second button on-screen, but that doesn't seem to work. An alternate solution would be to change the line of text within the button to display a new line of text, and after clicking the button a second time moves onto the next screen, but I haven't found a way to do that either.

Any assistance on this?

Product Version: UE 4.17
more ▼

asked Sep 02 '18 at 10:09 AM in Using UE4

avatar image

1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hi! In the designer set the Visibility of your button Hidden Create an on clicked event for your first button, the get the otther button, and use the set visibility node to change it to visible, and use anther set visibility to hide the first button I hope it helped

more ▼

answered Sep 02 '18 at 11:36 AM

avatar image

124 2 3 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Perhaps Evertoo's answer has already helped you but this is an example of how I would do it.

For the Style:

Make a widget and place 2 buttons in it. alt text

Button 1 is the one where you click on (in my example its the blue one).

Button 2 is the one with the style, you set that one in a Z-Order of -1 (in my example its the red one).

On Clicked Button1 - Set style Button1 to Style button2. alt text

If you click on button1, button1 will then have the appearance of button 2.

For the Text in de button:

Create a binding on the text in de button and create a text variable.

Get text - Return Node This will make the text as a output for the binding. alt text

Of course there are many ways to do it, but this it how I would do it.

I hope this will help you.

alt text alt text

more ▼

answered Sep 03 '18 at 12:30 PM

avatar image

146 4 7 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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