how to play sound when i focus a button by keyboard(not by mouse)

hello, thanks for your attetion.

in the widget blueprint, for the button , it just has hovered sound for the mouse.

295622-3.png

it doesn’t have focus sound by keyboard

so i tried to do with play sound 2d

it has sound but It keeps ringing all the time when my keboard focus on it.
i want that it rings only onetime

so how can i resolve it?

1 Like

I also want to know this? can’t seem to find a way to make this happend? Did you find a solution to this?

too late, but you can use the “event on added to focus path”

so how can I do this?


This worked for me. If the key is in focus, it plays the sound (do)once.
The (Do Once) resets once its NOT in focus.

1 Like

May I suggest using event dispatchers instead?

1 Like