- Home /
This question was
closed Jul 21, 2021 at 09:30 PM by
euanross400 for the following reason:
The question is answered, right answer was accepted
Question by
euanross400 · Jul 21, 2021 at 06:29 PM ·
animationanimatoranimation clip
Can't stop death animation from looping
I have made an enemy death animation that plays when the animator parameter isDead is set to true but even thought I unchecked Loop Time it loops the animation. If you might know what the issue is please leave a comment.
Comment
Some script could start another animation for a short time and then animator would switch back to playing death animation from the very beginning if it has a transition from Any State.
Try to replicate the behavior with animator tab opened to see if it is the case. Try to use trigger parameter for isDead instead to see if it changes the animation behavior.
Changing it to a trigger made it work thank you.