Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit 3D settings of AudioSource #32

Open
Aledavid07 opened this issue Jan 9, 2024 · 3 comments
Open

edit 3D settings of AudioSource #32

Aledavid07 opened this issue Jan 9, 2024 · 3 comments

Comments

@Aledavid07
Copy link

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 Aledavid07 changed the title maxDistance with Spatialize doesn't affect anything edit 3D settings of AudioSource Jan 9, 2024
@jackyyang09
Copy link
Owner

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.

@Aledavid07
Copy link
Author

thank you for explaining!

@ZaphireSA
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants