mixepilm
(mixepilm)
May 31, 2021, 6:22pm
1
hi, i’m a beginner in unreal engine and i have recently started to learn the blueprints.
i have a problem and that is the keyboard function is not working for me.
i saw some solutions in the forum but as i said i’m actually a newbie,i didn’t understand anything.
i would appreciate if you can help me with this.
and also i’m using UE 5, i have tested this script in UE 4.26.2,it didn’t print anything at all on the screen, i don’t know why!
3 Likes
You have to enable input on the blueprint, like this:
24 Likes
zompi2
(zompi2)
May 31, 2021, 7:47pm
3
Hi!
First - you need to tell us more. Is it level blueprint? Is it actor blueprint?
Second - try to “Print String” right after the “F” key event to check if the press “F” even came.
Third - you might need to click anywhere on screen when game is running. UE4 sometimes doesn’t get focus when started. This might be the issue.
Fourth - switching boolean this way is more readable
3 Likes
mixepilm
(mixepilm)
May 31, 2021, 9:49pm
4
oh thank you very much.
it was an actor.
actually i don’t really know the difference between these different blueprint types
mixepilm
(mixepilm)
May 31, 2021, 9:51pm
5
the problem solved with this ‘Auto Receive Input’, it was disabled.
thanks a million.
mixepilm
(mixepilm)
May 31, 2021, 9:53pm
6
this script is much cleaner than the one i did.
Third option worked for me, thanks a lot
1 Like