Turn on and off the widget help

Hey all made this widget turn on when i hit B well how i do when i hit B again to remove ?

You need to store the reference to the widget in a variable so that you can remove it later - there’s a plain “Remove from Player Screen[Viewport]” node that takes a widget reference that you can use :slight_smile: You’ll probably have to stick a flipflop on the B key as well, or do something more robust with validity checking for the widget.

Tnx will check it out i just started with blueprints :slight_smile:

Quick add from the IRC chat:

Button Event -> gate -> flipflop

-A-> add widget to screen and set variable
-B-> remove widget from screen

-both-> reset gate

Somehow when i set key B wen i press it its open the widget but when i hit again the B its shows nothing like i did not pressed it at all ?

This is what i get

Here’s a working graph for you, should be properly transferrable to what you’re doing:

This works the problem is solved :slight_smile: tnx to

Well one more question how to add when is active the Widget how to disable character from moving wile doing in widget when i add player controller its ok but cat close the widget ?