- Home /
Event animation does not work from the second two
Good morning everybody:
I have a problem wit event animations. In this case, the duration of the animation is 4 seconds, and y wnat to use an event in the end of the animation.
The problem is, for some reason the event don't call his function from the 2 second. If the event is before, the event works, but if it is later don't call to the function.
I add images of the timeline animation and other of the transition of mecanim (just in case).
Sorry for my English
I use state machines. In the event, how i said, i call a function that stop the physics, because depends the state the animation changes that.
Answer by tebandesade · May 06, 2015 at 09:11 PM
First of all. if you want to add an event after a transition finishes, it's better to use state machines : http://docs.unity3d.com/Manual/AnimationStateMachines.html , https://www.youtube.com/watch?v=lpekqN4_4xg . Because it appears that your animation could never reach to its end. Maybe you can also specify more information.