- Home /
Mecanim animation events
Hello, has Mecanim in Unity 4.1.2f1 options for adding animation events? Thanks in advance.
Answer by TonyLi · Apr 24, 2013 at 01:40 PM
EliteMossy is correct -- Mecanim doesn't have animation events yet. Using her suggestion, you can define a curve that crosses the zero axis when an animation event should occur. You can watch the value of the curve in your script's Update() method. When it changes sign (positive to negative, or vice versa), you can trigger the event.
My recommendation, however, is to use G1NurX's excellent "Event System for Mecanim": http://u3d.as/content/g1nur-x/event-system-for-mecanim/3QP
Answer by EliteMossy · Apr 24, 2013 at 09:34 AM
I don't believe so, but you can use Curves in Pro to trigger events.
http://docs.unity3d.com/Documentation/Manual/AnimatorCurves.html
Your answer
Follow this Question
Related Questions
Animation events firing all at once in mirrored blend tree 1 Answer
How can I give variation to animation curve in Unity? (Raw mocap data) 0 Answers
In place animations using Mecanim and how to script it 2 Answers
Mecanim not updating script when it switches state? 2 Answers
Attack Animation through Javascript 0 Answers