Question regarding handling focus

I have a UUserWidget and it contains multiple UWidgets (let’s say buttons). I can navigate the widgets with the keyboard and everything is fine, but I’d like to be informed when a button gains focus so that I can play an animation on it. Right now I don’t see a way to do this without checking all of the widgets each tick to see which has focus.

Is there any better way to do this?


Hi !

According to the documentation you could override the NativeOnFocusReceived and NativeOnFocusLost function in your custom UUSerWidget class :smiley:

Good luck!