Character stuck in animation pose after Play Animation finishes

Hi,

I’ve got a character with two animations. One is the idle animation, which I set up in the AnimGraph. The other is an animation that I trigger on button press via the PlayAnimation node.

52223-simpleanimgraph.png

When I start the game, the character idle plays as expected. On pressing 1, the second animation is triggered and plays correctly. However, when the animation finishes playing, the character doesn’t return to the idle but instead stays stuck in what looks like the final animation frame.

I eventually managed to set up a workaround that involved adding the second animation in the AnimGraph with a transition comparing a boolean which is set to true on button press and resets to false in reaction to an Anim Notify fired in the animation itself.
This works, but seems really complicated for something that seems like it should happen automatically (switching back to the AnimGraph behavior once a custom animation has finished playing), especially when you consider that under more realistic conditions I’d want to trigger any number of animations directly.

Is this a bug? Or am I missing something obvious in my Play Animation setup? In particular, is there an event that fires whenever an animation finishes playing?

Hi,

i really advice you see these video tutorials from Epic, videos from 16 to 22 - YouTube because it should give you most common knowledge on how make animation in right way and make it’s mix/change, it isn’t so simple as you may think at first, i remember it because watched it already, but didn’t dive too deep into this

That was actually one of the very first video series I watched when I delved into Unreal 4. :slight_smile:

Setting up a montage for every simple animation I might want to play seemed like overkill, so I didn’t even consider it until I got desperate. But yes, using PlayAnimation appears to have some buggy side effects (also doesn’t trigger Animation Notify events) whereas playing a Montage (or setting a variable for the AnimGraph transitions) works fine. shrugs

Thanks!