The question is answered, right answer was accepted
Animation keeps playing even on wrapmode once
Im trying to make a hit animation for a weapon and it should not loop.
So my animation controller looks the following :
And my code looks like this: (The animation is given in the inspector) According to those tutorials (https://answers.unity.com/questions/45070/play-animation-only-once.html, https://answers.unity.com/questions/708824/animation-keeps-looping-even-on-wrapmodeonce.html ; I tried both) Everything should be fine but my animation keeps playing! Any idea why that happens?
Sucks nobody else answered this cause i was looking for the same thing lol. But for anyone else who comes along here and views this, here's whatcha do.
Go to the Animator window. Right click the "dagger_hit_test" (or whatever animation clip you're playing), then hit "$$anonymous$$ake Transition" and transition back to Idle. That'll clear it up :)
(or at least it did for me and hopefully for you also).