Simple-Unity-Audio-Manager icon indicating copy to clipboard operation
Simple-Unity-Audio-Manager copied to clipboard

edit 3D settings of AudioSource

Open Aledavid07 opened this issue 2 years ago • 3 comments

image

Is there a way to turn this into Linear Rolloff and modify min Distance for the sounds? i want my sound to stop hearing completely after some distance

Aledavid07 avatar Jan 09 '24 17:01 Aledavid07

You can override the default AudioChannel prefab that JSAM uses by navigating to Project Settings -> Audio - JSAM and locating the Sound Channel Prefab Override field.

Create a new GameObject in your scene and add an AudioSource component to it. Set the AudioSource settings to the settings you want and then save it as a Prefab. Then, set that field above to the prefab.

All your sounds should then use those settings.

jackyyang09 avatar Jan 11 '24 05:01 jackyyang09

thank you for explaining!

Aledavid07 avatar Jan 11 '24 17:01 Aledavid07

Would it not be possible to change this for a case by case basis. Example would be I have a Jet that I want to have doppler effect settings on etc, then I have explosions that I want different volume rolloff for etc.

ZaphireSA avatar Mar 15 '24 10:03 ZaphireSA