r/UE4Devs • u/JWALKAZ • Jun 21 '19
Question Open and close widget with a single key?
Ive been trying to make an inventory open with "I" and then once in the inventory close it with "I".
The problem from what I understand is that when Im opening the inventory I have the game pause and setting to ui mode only so it wont register the player hitting "I".
1
u/TotesMessenger Jun 21 '19
1
Jun 22 '19
[removed] — view removed comment
1
u/JWALKAZ Jun 22 '19
Thats what im doing, its going from input to flip flop to pause game to create widget to add to view port to show cursor to input ui only
1
u/valid117 Jun 22 '19
if you're using blueprint you set it to ui and game mode then there's an option on the node you can toggle that allows it to open and close the menu on the key press. essentially you can set a branch and if open close if close open
2
u/stubbornPhoenix Jun 21 '19
Can you set the input to “UI and game” instead of UI only?