- Home /
Animation Trigger Other Events
Hey All, I have a character with an animation that I did in 3DS Max, swinging a large hammer, the problem I am having in Unity is I want a camera shake when it hits the floor.
Now I have a camera shake script which works fine, but I am struggling to make it trigger the shake when the hammer hits the floor because I can't add events to read only animation.
What method would you guys use.
Answer by TonyLi · May 02, 2013 at 02:50 PM
In the legacy animation system, I'd add an animation event (http://docs.unity3d.com/Documentation/Components/animeditor-AnimationEvents.html) to a copy of the animation. Select the animation and hit Ctrl-D to duplicate it. Then add this copy to your character's Animation component.
In Mecanim, I'd use G1NurX's Event System for Mecanim: http://u3d.as/content/g1nur-x/event-system-for-mecanim/3QP
Thank you so much, I didn't know you could duplicate the clips to you can edit them in Unity!
Your answer
![](https://koobas.hobune.stream/wayback/20220613101414im_/https://answers.unity.com/themes/thub/images/avi.jpg)