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?
asked Sep 02 '18 at 10:09 AM in Using UE4
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
answered Sep 02 '18 at 11:36 AM
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.
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.
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.
Of course there are many ways to do it, but this it how I would do it.
I hope this will help you.
Follow this question
Once you sign in you will be able to subscribe for any updates here