To make a dynamic soundtrack, follow these steps:
- Create a new Unity 3D project.
- Import the provided Unity package, DynamicSoundtrack, and the two .ogg files into your project.
- Open the Dynamic scene from Project panel folder, DynamicSoundtrack | _Scenes.
- In the Project panel, use the Create menu to add an Audio Mixer file. Rename this new file Mixer-music. Double-click it to open the Audio Mixer panel.
- In the the Audio Mixer panel Groups section, highlight Master and click the + (plus) sign to add a child to the Master group. Name this child Percussion. Repeat these actions to add a second child of Master, named Synths:
- From the Hierarchy view, create a new Empty GameObject. Name it Music.
- Create a GameObject in the scene ...