- Home /
Question by
$$anonymous$$ · Feb 09, 2020 at 01:59 AM ·
animationspam
How can I achieve spam without ruining an animation?
So I want the user to spam the mouse button but the attack animations get stuck because of the spam, how can I resolve this?
Comment
Answer by maormenashe · Feb 10, 2020 at 01:39 PM
You want to restart the animation on each click? If so you could for example set the animation to have a transition from "Any State" set by a trigger and set the following:
Has Exit Time = false
Transition Duration = 0.01
Can Transition To Self = true
You can see also the following images
anystate.png
(6.9 kB)
transitioncofiguration.png
(19.7 kB)
Your answer
![](https://koobas.hobune.stream/wayback/20220612223011im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Can the animation editor create local rotational data? 3 Answers
Adding animation clips via script 2 Answers
hit delay does not kick in 0 Answers