How to make a toggle-able UI?
When i press 'I' i want a UI to open(This part i can do), but when i press 'I' again i want the UI to go away. How can i do this?
asked May 10 '15 at 02:01 AM in Blueprint Scripting
I'm assuming you'll be using UMG. Just have your event go into a flip flop node. When 'I' is first pressed, create the UI, and store it to a variable. When it's pressed again, use the remove from parent node to remove the UI element.
Otherwise, if you don't want to be creating and destroying your UI every key press, you can just toggle it's visibility by using the set visibility node, or calling an event inside your UMG to hide particular elements.
I'd also recommend taking a good look through Unreal's youtube page, and documentation. They have some good tutorials on UI, like their inventory tutorial.
answered May 10 '15 at 05:17 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here