- Home /
syncronize long animation & sound
hi all
i have in unity an fbx long animation of two chars, i would play also the dialog sound, but the sync is relative to the hardware, how can i syncronize animation with audio clip for a long time (2000 frames)?
thanks for help
Answer by DNSavar · Oct 08, 2010 at 03:37 PM
You can use the Animation Window (in Unity) to add AnimationEvent. AnimationEvent can call any functions in any scripts on your game object (your animation).
You can pass only one parameter (int,float,string) but a string can hide all the parameter you want!
Check your unity doc to know how to add Animation Event (Unity/Editor/Data/Documentation/Documentation/Components/animeditor-UsingAnimationEditor.html)
Also, if can't add animation event on Animation window, check this thead :
thanks DNSavar, but how you play\pause animation and sound in the same time?
Your answer
![](https://koobas.hobune.stream/wayback/20220613075116im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Play Audio in Animation Window 0 Answers
Can I make animations snap to a frame? 1 Answer
How do I sync the animation of objects instantiated at different times? 0 Answers
Unity 5.1 networking sync player animations 2 Answers
synchronize animations 0 Answers