- Home /
Is there a way to copy animation events between Mecanim animations?
Not being able to copy animation events is a pretty labor inducing lack of a feature. My game makes heavy use of animation events, and the calls are all identical between animations on different characters (other than slightly different timing).
I found this script which saved me a LOT of time using Legacy animation system: http://forum.unity3d.com/threads/animation-event-copier.140158/
However it does not work with Mecanim. Does anyone know how to convert this script to be used with Mecanim?
Answer by balthatrix · Feb 13, 2017 at 08:33 AM
Look up "animation override controllers" if you are still having difficulty. They solve this problem by allowing you to map analogous controllers and clips together, and make them all share the same state machine.
After you set it up, any events you add to the base controller's clips are also added to the related clips in related controllers.
Answer by Griffo · Oct 02, 2014 at 07:14 AM
I just copy the Animation Controller file, rename it, then change what I need to, then add it to my next character.
Thank you for the quick reply! Unfortunately, the animation events are per animation and not related to the Animation Controller. You can find them by selecting the animation, then scrolling down the the events section.
O, I see what you mean now, sorry I can't think of a way to copy those events.
Your answer

Follow this Question
Related Questions
AnimationEvent.animationState help: NullReferenceException 0 Answers
Function Animation event 1 Answer
Animation Event (Function not supported) for a public overridden function 0 Answers
How to detect if player hits enemy half-way into an animation? 0 Answers
Executing projectile script at particular animation frame? 1 Answer