Forum rules - please read before posting.

Play sound louder based on proximity to sound source

AC 1.73.8
Unity 2020.3.15f1

I am trying to make background sound play only when player approaches the source of sound (drops dripping out of the pipe).

I managed to start sound based on Trigger, but is there any way to make sound play louder when player approaching source of sound and quieter when player go away from sound source?

Comments

  • An AudioSource component that has 3D spatial-blending will be louder the closer it is to the scene's AudioListener component.

    By default, this AudioListener is on the MainCamera - but you can move it to the Player character if you wish.

  • Thank you Chris, this works for me!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.