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!

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”