I’m trying to get root motion animations working in sequencer in Unreal Engine 5.4.
This is what I did so far:
Ensured that animation contains root motion, that it is at 0, 0, 0, that it is attached to the root bone.
Root motion is enabled on the animation page (named RESULT). The animation preview shows red line when root motion is disabled as expected, and it is also properly consumed if root motion is enabled.
In the animation blueprint, I also set it to get root motion from everything.
In sequencer, I added the animation itself and transform track. The animation is played ‘in-place’, which is, I think, wrong?
In sequencer, if I disable animation blueprint and set Custom Mode instead, animation works, but root motion doesn’t do anything thus Capsule Component stays in the beginning, which is not what I really want.
I also suspected that this is related to character movement component, but setting Flying/None mode does nothing, disabling collision and gravity also does nothing.
Here is the sample project with the basic setup that doesn’t work (it has SOURCE animation I retargeted and RESULT which is used in level sequence TEST):
After many hours I was able to solve my issues with this. Here’s what worked for me:
Assuming you have a valid root motion animation… Add the animation to sequencer. Don’t increase the animation duration. If the animation is an even number, shorten it by 1 frame so it is an odd number (I can’t even…). Then create duplicates of the animation on the track for the duration you want to move. Bring the track player to the first frame of each duplicated animation, right click on the track and select “match with bone on previous clip” and select the pelvis.
Other notes: make sure the mesh animation is set to custom mode and not an animation blueprint. You can add this option to the sequencer and set it at the start with a key frame. In the sequencer details on the map, check restore state if you want to return to a BP animation after the sequence. The options on the sequencer tracks to restore state don’t work for this as far as I can tell.