The audio mixer settings :

Audio mixer settings

Then the audio source for the game music :

Game main music audio source

And the sfx audio source I changed the Spatial Blend to 3D and then in the 3D settings changed the Volume Rolloff to Linear Rolloff Min Distance to 10 and Max Distance to 13.

Sfx effect audio source

The sfx effect is working fine but the game music volume stay loud too loud.

How can I make that when the player is getting closer to the fire the main game audio will get less louder not to set the game music volume to 0 but make it slowly also less louder while the sfx getting more louder ?

my problem is to make the game music less louder slowly when the player is getting closer to the fire.

  • 2
    \$\begingroup\$ I don't know how to do this in Unity, but it might help to know that in audio, making one sound quiet when another is present is known as "ducking". \$\endgroup\$
    – Kevin Reid
    Mar 20 at 19:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.