Mecanim animation playing once on button press
I have a problem with playing it ONCE. To each button I assigned the trigger. When I press button, it plays okay, but when I rapidly pressing button, it plays once, and after animation completion it plays once more. Here's my transition from idle animation to attack.
captious asked , animations are the loop time strikeout
Answer by theANMATOR2b · Jul 12, 2016 at 02:42 PM
Does checking Has Exit Time reset the animation every time you spam the play animation button?
Yes, I belive it does so. Because when I spam button nothing happens, and then after some time it plays animation 2 or 3 times.
Answer by zwxbest · Dec 28, 2016 at 08:04 AM
The same with me. I
I play again when jump animation is in progress,but when Jump end,it trans to idle and jump again. I don't want mecanim system respond my jump action until jump animation is end. For the time being, I have to write another scipt in OnStateExit function to call ResetTrigger function.