8,484
edits
Paradox-01 (talk | contribs) m (→Hyposprays:  hypo potentials now stackable, regeneration and degeneration now working accurate)  | 
				Paradox-01 (talk | contribs)  m (code to open and close widgets - intended for simple menu pages)  | 
				||
| Line 564: | Line 564: | ||
[...]  | [...]  | ||
===Widget===  | |||
[[Image:ue4_open_close_a_menu_widget.jpg|400px|right|thumb]]  | |||
[[Image:ue4_create_widget_ref_after_BeginPlay.jpg|400px|right|thumb|"Cast To ..." node is used to get variables from other blueprints]]  | |||
Any key can be used to open a menu. But when the game gets paused too then pressing the same key again cannot close the menu.  | |||
You need to set the key's property "Execute when Paused" to true.  | |||
Also, in theory a flipflop node would work but has proven unreliable. Setup a reference to the menu instead and use it an "Is Visible" and a "Branch" (if) node.  | |||
If you use "Set Input Mode Game And UI" use the "Lock Always" option to capture the mouse with in the game application.  | |||
====Animations====  | ====Animations====  | ||
edits