How to get button press duration?

Hello all, I’ve got another sipmle question and found no solution on the internet. Is there any way to get precise (milliseconds) button press (hold) duration in UE4? I need this desperately, but can’t find any way to get this. Thanks in advance.

Okay, so, I think it’s just a thing of setting a timer with OnPressed event and stopping it with OnRelase, right? But… How to do it?

Go into Edit → Project Settings → Input and add an Action Event. From there, you can have your blueprint use the action event to interact with timers.

look at this theme :)

1 Like


Dude!!! Nice!!!