Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Add Sounds in Game | Unity UI and Sounds
Unity for Beginners
course content

Contenido del Curso

Unity for Beginners

Unity for Beginners

1. Unity Introduction
2. Write your First Script
3. Unity Physics
4. Unity UI and Sounds
5. Polishing and Export your Game

bookAdd Sounds in Game

Begin by dragging and dropping your sound file into the assets folder. For example, in this scenario, we've dragged a sound file that plays when the player wins.

After that, drag the audio clip from the assets folder into the effects list within the sounds manager.

Now, add the following line to the winning condition.

Once the player wins, the sound effect corresponding to element number 1 in the list will be played.

You can add more sound effects with this way, and everything will work perfectly.

What’s next:

Next we will start polishing our game and makes it look better by improving the game visuals and using the particle system.

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 4. Capítulo 6
We're sorry to hear that something went wrong. What happened?
some-alt