- Home /
Sounds distance issue.
Ok, so I'm new to the Unity engine and everything was going pretty well until I added an Audio Source to an enemy. The idea is that the sound that the Audio Source plays would get louder and louder the closer the enemy gets, but the sound only kicks in when the enemy is really close. How would I get the volume of the AudioClip to increase from further away?
Answer by robertbu · Aug 21, 2013 at 10:27 PM
In the inspector, adjust the 3D Sound Settings of your Audio Source. In particular, try a Linear Rolloff, or you can do a Custom Rolloff and adjust the curve. Make sure the Max Distance is set correctly.
Your answer
![](https://koobas.hobune.stream/wayback/20220613112711im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Audio isn't playing for some reason 1 Answer
Audio Listener not working. 1 Answer
How to change priority of audio clips 2 Answers
Footsteps Sound Effect causing other Audio Clipping or no sound at all. 1 Answer
Play Audio Specific Speakers 0 Answers