- Home /
Need Help Getting a Mecanim Animation to Play Only Once
Hey Everyone!
I've been working with the Mecanim Animator Controller in Unity and am having a bit of trouble. I currently have two animations, a default run animation and a death animation. I've set up a transition from the run animation to the death animation that takes place if a boolean "dead" is set to true. The transition is working properly, but the problem is that the death animation continuously loops. I only want it to play once and stop all animations after it's played. How would I do this?
Any help would be appreciated!
Answer by aero80 · Apr 28, 2014 at 01:01 PM
Find the animation clip in your project and uncheck "loop time" in its settings. Or go to your imported character. Under its animation tab find the animation and uncheck "loop time"
Your answer
Follow this Question
Related Questions
Combining two animations to be one 0 Answers
Set Animator Parameter based on move direction? 0 Answers
Scale animation doubt 0 Answers
Mecanim issue: Twitching when blending into blendtrees 1 Answer