Sorry dude, but I’m really confused about what you are trying to do. By the way you should bind your key input within your player controller. See this image, it is on player controller, everytime key E is pressed it will trigger the event “Request Mount From Server”:
In my “game” mouse is not available and i want press any key on keyboard and see how my widget button pressed, like in all modern games. Please help me, i very tired try to do this “simple” task. P.S. Sorry for my english.
you don’t understand me, i have class: player, in this class i have button “E” and i what functional: when i press “E” witget button is pressed or speaking differentl way i whant press witger button via keybord.
Hello Iddqd87dm,
You will not need to link your Player input to the ‘UI’ to receive player input. The Events OnClicked or OnPressed/Released are for handling Mouse and Touch Devices, so they can “click” the button or widget. If you are using only the keyboard you can run your custom logic from the Player’s ‘Input Actions.’ I can see you already have a custom input mapping, so set up your key input mappings in the Project Settings → Input → Action Mappings.
First: On UI, make a variable of type player, ‘expose it to spawn’ and make it ‘instance editable’.