Challenge: Moving sound

Tutorial

·

foundational

·

+60XP

·

30 mins

·

Unity Technologies

Challenge: Moving sound

Use your knowledge of scripting from the previous project to make some sound travel outside the window of the kitchen, and observe the effect that moving sound has on your Audio Listener. This challenge is optional.

Languages available:

1. Overview

In this challenge, you will add 3D sound to a moving object. In the process of meeting this challenge, you will:


  • Use scripting to make a GameObject move.

  • Add an Audio Source Component to a GameObject.

  • Add an Audio Clip to an Audio Source Component.

  • Create a Doppler effect using 3D sound

Tip: In the 3D Sound Settings, increase the Doppler Level property to enhance the Doppler effect.


2. Build your scene

A few instructions are provided below, but the creative part is all up to you.


  1. Use your scripting experience to make a GameObject go past the window outside the kitchen.

  1. Add an Audio Source to the moving GameObject.

  1. Find an Audio Clip to add to your Audio Source. It could be a siren, music, a motor, or something unusual.

  1. Follow the process in the previous tutorial to create 3D sound.

  1. Run the Scene to test it, and make adjustments as necessary until you get a realistic audio effect.

  1. Add more sounds behind doors, inside cabinets, or on the table to make the Scene uniquely your own.

Optional Step

3. Publish and submit your project

If you like, we invite you to publish your project and share it with others in this Foundations Audio Project Gallery.


Enter the link to your audio project below. Please also share any "behind-the-scenes" information about how you created it.


Now that you know how to make sound realistic in 3D, we invite you into a new kind of real-time space: a 2D project. Proceed to the next project in this Mission!


Please login to submit

Complete this tutorial