I try to play an animation on a character using C++. I want to play the animation once, then return to idle animation. What I’ve done so far:
- used the character from the NavMesh- sample in the first-person c++ template
- created a montage using the jumpstart animation
- loaded the montage successfully
I tried 3 different approaches to actually start the animation:
Mesh->PlayAnimation();
This works, but returns to the idle pose (I would expect it to go to the idle animation automatically) and does not give me any information how long the animation will take.
float playTime= Character->PlayAnimMontage();
This gives the right playTime, but does nothing.
float playTime= AnimInst->Montage_Play();
This gives the right playTime, but does nothing.
Thank you!