To change the pitch of an audio clip according to the speed of an animated object, please follow these steps:
- Create a new Unity 3D project.
- Create a new Models folder in the Project panel, and into this import the provided animatedRocket.fbx file.
- Create a new Sounds folder in the Project panel, and into this Import the provided audio clip, engineSound.wav.
- Select the animatedRocket file in the Project panel. In the Inspector for animatedRocket Import Settings, click the Animations button. In Animations select (the only) Take 001 clip, and make sure to check the Loop Time option. Click on the Apply button to save the changes. See the screenshot for these settings: