4.5 Widget Blueprint Button Input

Hello Everyone,

There may be a simple answer to this question but i shall ask it anyway…

I am new to using UMG and I am enjoying the new look and feel of it so far, i’m finally delving deep into the unknown!

My question is I want to bind it so when 1,2,3 etc is press you can use the buttons. I for the life of me could not find anything on the internet about it… I’ve tried creating a bool for '1’when it is pressed and then was going to call it in the Widget however realised this cant be achieved…

So my question to everyone is how can I get these buttons working with keyboard input? I have seen there is a OnKeyDown function but again I am new to this part and not sure how i can go about it.

Here is what i am trying to bind

Have you tried to bind a function to your button using the Bind button from the Editor ? It will create a function which will be executed when you click on the button. And I think you can also create a keybind which executes this function. So at the end, the function will be executed by the button AND by the keybind.