# How to play animation on focus?

**URL:** <https://forums.unrealengine.com/t/how-to-play-animation-on-focus/646864>\
**Category:** Blueprint\
**Tags:** unreal-engine, Widget, UE4, question, UE4-27, Blueprint\
**Created:** [September 12, 2022, 12:12pm UTC](https://forums.unrealengine.com/t/how-to-play-animation-on-focus/646864 "2022-09-12T12:12:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![satyendraa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@satyendraa](https://forums.unrealengine.com/u/satyendraa)\
**Post date:** [September 12, 2022, 12:12pm UTC](https://forums.unrealengine.com/t/how-to-play-animation-on-focus/646864/1 "2022-09-12T12:12:03Z")

</div>

I’m creating a menu which has keyboard, mouse and gamepad navigation. The navigation works fine with hover but I need to figure out how I play the animations when the buttons are focused. How do I trigger the animation when the button gets and loses focus?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/6/0561b8b89322fed822132c4a4dab2645f5dce3ad.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 12, 2022, 12:15pm UTC](https://forums.unrealengine.com/t/how-to-play-animation-on-focus/646864/2 "2022-09-12T12:15:57Z")

</div>

I think you’ve got ‘on focus received’ and ‘on focus lost’? ( can’t check rn ).

---

<div class="post-metadata">

**Author:** ![satyendraa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@satyendraa](https://forums.unrealengine.com/u/satyendraa)\
**Post date:** [September 12, 2022, 12:34pm UTC](https://forums.unrealengine.com/t/how-to-play-animation-on-focus/646864/3 "2022-09-12T12:34:09Z")

</div>

‘On Focus Received’ isn’t a action in Blueprint. It doesn’t bubble it says in the engine.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/4/3543bdc9b66ba1e78ccbf0c3b19fdcb8bd3d0010.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 12, 2022, 12:51pm UTC](https://forums.unrealengine.com/t/how-to-play-animation-on-focus/646864/4 "2022-09-12T12:51:32Z")

</div>

Ah - darn… 🙂

---

<div class="post-metadata">

**Author:** ![ImYourBeast](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/imyourbeast/32/1220194_2.png) [@ImYourBeast](https://forums.unrealengine.com/u/ImYourBeast)\
**Post date:** [November 22, 2026, 11:47am UTC](https://forums.unrealengine.com/t/how-to-play-animation-on-focus/646864/5 "2026-11-22T11:47:24Z")

</div>

Hover only fires for the mouse, while keyboard and gamepad move focus instead, so one binding never covers both. Bind the button hovered and unhovered events for the mouse path and the focus added path on the owning widget for the gamepad path, and play the same animation from either. Keep the buttons focusable and set initial focus when the menu opens so the first selection has somewhere to go.
