UMG Key Pressed
Hi all, i have a UMG menu and i want to close it when the user press the "p" key, but in the UMG there is no "p key pressed" event. How i can do that?
Another question: why,when i open the menu, i have to click twice for run the click event on the button? It's looks like that the umg has no focus.
asked Mar 06 '15 at 03:29 PM in Blueprint Scripting
To close a widget you have to remove it from the viewport (with the node called "Remove from Parent".
Just save the return value from "Create Widget" in a variable and use that to remove it when you press your key.
And for the focus. There are events to bring a widget into focus. Like "Set Focus UI" (something close to that. It's not quite the exact name). For this you will need again the widget reference.
answered Mar 06 '15 at 04:50 PM
Man, thank you. That's work fine! Just a little bug but i can resolve it, never noticed about the "execute when paused"! Thank you, sir!
answered Mar 08 '15 at 12:05 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here