Is it possible to make a specific image from a widget appear and dissapear when pressing a key button

Hello,

So im doing a game project and what i want to do is, i press a key button and it shows a specific image from a widget that it’s already added on the viewport.

Where should i do it first? like i have the character BP where i did the key pressing to do stuff, should i do it there?

Can someone show me how to do it?
If you need more information or screenshots tell me :slight_smile:

Greetings @MunoMuska !

We warmly welcome you to the Unreal Engine community! :medal_sports:

Just so you know, I had to move this topic from Getting Started to Programming & Scripting - UI. I also added the optional tag “Widget” for you. “Getting Started” is not a bad forum category for what you’re discussing here, but that forum category is mostly for installation questions. Since you’re dealing with the UI, this forum category is most fitting.

Remember, when posting, please review the categories to ensure your topic is posted in the most relevant space.

Thank you very much, and have a most awesome weekend!

'- Your Friendly Neighborhood Moderator

1 Like

Thank you ^^

Sorry… It was a bit confusing… I didn’t put in Programming & Scripting -UI because i need to do it based on Blueprints.

Ok, i will do my best.

Thank you again, you too

1 Like

In you characterBP or in your controller BP put this :face_in_clouds:
UEForum
In your widget_bp cast your character o controller and put this, in my case i use the character bp


make sure the “consume input” in the widget’s graph is equal to false

1 Like

Thank you so much for helping :slight_smile:

Ok, i did the first image.

Now on the 2nd one, so i should do that on the widget blueprint but it doesnt let me put the H pressed or call the Character_BP. I event tried the press key option to replace the H pressed but it’s not the same.

I’m using version 4.27.2 not sure if that’s a problem.

ok, then u can put your image in a diferent widget and do what this guy do