Mecanim animation curve footstep sync

Audio manager created to synchronize any audio, against Unity Mecanim animation curves.

A configurable audio manager was created, that can poll an animation controller for specified parameters, when a specific threshold is met, the script will call an extendable callback handler, which can then do whatever it needs to, in this case, it will play audio, the video will demonstrate the footsteps are perfectly synchronized to the animation. This was done using Animation Curves, that will provide a value at a given frame during the animation, that the scripts and components poll and use, during the update loop.

A central audio manager ensures clips are re-usable, and no drop in performance.

Multiple animation callbacks can be invoked, and any parameters can be defined.

This will form the basis for the animation and audio synchronization in our upcoming games.


Leave a Reply