Make something happen at a specific time in a looping animation
Hey,
I have made a script which checks at what time the animation is and whenever it hits a specific time it will do an attack. But since the animation is looping it only works one time because even though the animation is looping the time just continues.
I hope someone can help me with this. Thanks,
-Teddynieuws
Hey @Uktol is it a 3D object? whose animation you are playing? Or you are using sprite animation?
Hey, i'm sorry for responding late.
It's an animation for a 3D object.
Thanks for helping me :)
-Teddynieuws
Answer by MadDevil · Sep 30, 2015 at 12:30 PM
if its an mecanin animation clip than you can use events for "Making something happen".
http://answers.unity3d.com/questions/615041/mecanim-animation-events-1.html
Your answer
Follow this Question
Related Questions
Can you set animation time of an animation in editor mode ? 0 Answers
Animation not loopping 0 Answers
UI animation when enter trigger, then destroy self after (X) time 0 Answers
how to change the animation lengh by script? 0 Answers
Quick Question 1 Answer