Problem with key mapping

Hello everyone so I found a tutorial/answer to another question on here that was a lot like what I neede but for some reason I cant get it to work. I don’t have any errors and as far as I can tell its an issue with key mapping since nothing happens when I hit the key needed. If anyone can help that’d be much appreciated!

here’s the tutorial I followed: Random Text UMG - #2 by Sean_L

and here’s what I have

Does anything happen if you hook up a print string to triggered? If not your mapping context isn’t set up.

1 Like

Apparently that didn’t work either would you happen to know what I did wrong when setting up my inputs
https://imgur.io/a/5JvnnT7

Could be a few things. First check game mode blueprint/world settings and make sure the right player controller is selected, if you didn’t make a new player controller blueprint, then you are using the right one already. If it is an actor BP you put the input action into you have to enable input on it by dragging out from the controller and using an enable input node.

1 Like

It would seem the problem I had was just having it in the wrong blueprint, thank you for your help.

Would you mind if I asked how to have the result reset once I press the button again?|

As it is if I press the button it’ll give me the result but if I press it again it’ll overlay the 2nd result on top of the first result.

Personally I would save the widget into a reference, that way you can easily remove it from parent whenever to make it go away. Probly lots of ways to do that tho.

I see do you know of a resource or what I could type to google a solution?
I’m very new to unreal engine so I don’t really know what to look up for certain things.

Don’t really need a guide just practice with logic. If you right click the return value on the create new widget blueprint node and select promote to variable, it will store a reference to the widget in a variable. From this variable you can do a bunch of different stuff with the hud widget. Mainly, you can make a branch before the create new widget node, drag off the hud variable and check if its visible, if it is visible remove it from parent before adding the new one. Experiment and when you drag off variables and stuff take a good look at all the options so you know whats there.