How to use anim montage in state machine?

Hello, first of all I know very little. How can I use anim montage in state machine? Is there any Any tutorial or anybody can explain?

Hey Razee,

Normally you won’t use a montage within the state machine itself but instead within the blueprint graph of the animation BP or even within others like the character. If you are trying to have an animations only play once within the state machine you need to turn off looping and set the transition to move on after a specific amount of the animation has played. Normally this isn’t the full amount so you give the character a small window to blend into the next animation.

Check out state machine documentation here: https://docs.unrealengine.com/latest/INT/Engine/Animation/StateMachines/index.html

If you are having trouble getting Montages to play when you call them its most likely because you need to setup the Final pose to take in what they call a “Slot” so the animation montage can override the state machine when it plays.

Check this out on anim montages: https://docs.unrealengine.com/latest/INT/Engine/Animation/RootMotion/index.html

It has some information on using root motion but you may not need to worry about that. Check out where they setup the animation montage, when the call it to play and how they setup the Fullbody slot.

Hopefully that is what you are looking for / helps!

2 Likes

Thank you GPM. As I am very new in unreal, I actually didn’t understand that. And now I also didn’t use the animation montage in state machine. I did that all in state engine. Thanks for your help.