Getting ready

To follow this recipe, we need a sound effect. You can use the provided example Unity project and go to the Chapter 07 Special effects\Recipe 09 Using waveform of a sound clip to animate objects in the scene directory. If you open the Example.unity scene there and play the game, you will be able to see a few cubes react to the playing audio clip.

Get Unity 5.x Animation Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.