How to ADD 3D SOUND in Unity

preview_player
Показать описание
In this video we see how to setup the AudioSource component to get 3D sounds in Unity, this means that the position of the camera affect the volume of the AudioSource and also if you hear the sound louder on your right or left speaker.
You can hear sounds in Unity because in the scene there is a component called "AudioListener", this component comes by default with the Main Camera. The AudioSources on the other hand are the speakers of the scene, they produce sound, but by default you hear the sound as if you have the source of the audio directly in front of you.
To get a spatial sound you need to setup the "Spatial Blend" parameter of the AudioSource in "3D" and adjust the 3D sound settings.

____________________________________________________________
____________________________________________________________
Рекомендации по теме
Комментарии
Автор

Great video, straight to the point, exacly what I was looking for

OsupremoPATAPON
Автор

Great video man - straight and to the point!

vincentoreilly
Автор

Hey, thanks for this.
Is there any way to play sound in 3d, like when the object is in left the Audio will play only in the left channel, same with right.

adarsh
Автор

You sent me the link to this in a comment on one of your other videos.

I gotta be honest. I'm not going to watch this right now. I don't need it.

I will leave a suggestion for a new video though.

There's plenty of videos on how to make a button to switch scenes and plenty on how to add a sound to a button when it is pressed.

There is no video on how to do both at the same time. That would make a great video. I'm not sure how you'd tag it to make the YouTube and Google algorithms see it, but I know it's a thing that people want.

matholameu