# \[Bug\] Widget animations only play 1 frame in the editor

**URL:** <https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-engine, Widget, Blueprint, question, UMG\
**Created:** [May 31, 2022, 2:04am UTC](https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404 "2022-05-31T02:04:59Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 31, 2022, 2:04am UTC](https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404/1 "2022-05-31T02:04:59Z")

</div>

The following BP function runs on PreConstruct.

 ![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/f/ddff873c5010d1bcc834261a74c8f920ff52e342.png)  
The widget animation only contains 2 keyframes to translate a border position from left to right over 2 seconds. When playing the animation in the editor only 1 frame is shown instead of the entire animation. In-game the animation works OK.

- Since I’ve never seen any widget animation working properly on the editor panel, this should be enough info and I assume it’s broken for everyone else?

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [June 1, 2022, 6:10pm UTC](https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404/2 "2022-06-01T18:10:21Z")

</div>

bump

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [June 3, 2022, 8:31pm UTC](https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404/3 "2022-06-03T20:31:20Z")

</div>

bump

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [June 4, 2022, 2:27pm UTC](https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404/4 "2022-06-04T14:27:47Z")

</div>

bump

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [June 7, 2022, 10:12pm UTC](https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404/5 "2022-06-07T22:12:22Z")

</div>

bummmp

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [June 8, 2022, 2:46pm UTC](https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404/6 "2022-06-08T14:46:00Z")

</div>

🪦 👻

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [June 9, 2022, 2:45pm UTC](https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404/7 "2022-06-09T14:45:20Z")

</div>

So the animation plays fine ingame. it plays OK when pressing the play button on the animation editor. It just doesn’t play all frames when its parent widget is added to another parent’s widget hierarchy where it is previewed in-editor. Is this not supported then? I’d like to have this working so that widget designers (not programmers) can preview their work anywhere inside the editor. Currently widgets respond to a change of a bool property on the editor panel which makes an animation play and it is expected to play entirely, not 1 frame.

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [June 11, 2022, 1:07pm UTC](https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404/8 "2022-06-11T13:07:12Z")

</div>

bump

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [June 12, 2022, 2:31am UTC](https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404/9 "2022-06-12T02:31:19Z")

</div>

bump

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [June 12, 2022, 5:16am UTC](https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404/10 "2022-06-12T05:16:03Z")

</div>

Are you sure you are not getting TRUE FALSE TRUE FALSE…and that is causing the animation to freeze ( play forward, play backwards, … )

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [June 12, 2022, 5:31pm UTC](https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404/11 "2022-06-12T17:31:40Z")

</div>

I am absolutely sure. I controlled this with a single checkbox.

I had the same problems on other methods running animations. For example I wanted to update the styles when a widget is selected / deselected in editor to show a “focused” style:

```auto
#if WITH_EDITOR
/*
void UUserWidgetNavigatable::OnSelectedByDesigner() {
    Super::OnSelectedByDesigner();
    SetStyleFocused();
}

void UUserWidgetNavigatable::OnDeselectedByDesigner() {
    Super::OnDeselectedByDesigner();
    SetStyleDefault();
}
*/
#endif // WITH_EDITOR

```

In which the SetStyle… are blueprint implementable and play an animation. Play forward for focus animation, play reverse to undo focus animation. Same result.  
I am creating another post for more editor animation weirdness…

> [UMG animated brush material parameter has the wrong default value](https://forums.unrealengine.com/t/bug-umg-animated-brush-material-parameter-has-the-wrong-default-value/580211)

I am clueless why the editor doesn’t do these things. Right now it takes an enormous amount of time to iron these things out.

Ruling out it is PC / project specific… Does it work for you?

---

<div class="post-metadata">

**Author:** ![piontek](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/piontek/32/1194706_2.png) [@piontek](https://forums.unrealengine.com/u/piontek)\
**Post date:** [July 12, 2023, 2:43pm UTC](https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404/12 "2023-07-12T14:43:24Z")

</div>

You’re right, I couldnt play an animation with preconstruct. It freezes at frame 1 and stays in this state. But I remember that it was definitely possible before some UE5 updates.

I’ve submitted a bug report about this:

Case # 00596672: Widget Animations don’t play in Pre-Construct

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [July 12, 2023, 8:04pm UTC](https://forums.unrealengine.com/t/bug-widget-animations-only-play-1-frame-in-the-editor/570404/13 "2023-07-12T20:04:59Z")

</div>

I am quite sure It happened in 4.26 / 4.27 already but I see I forgot to post a version here. Actually, back then the forums required to pick a version but today they don’t show that data… Funny.
