Unity Mixer with sliders | Unity3D AudioMixer

Unity Mixer with sliders | Unity3D AudioMixer

Jason Weimann

3 года назад

18,506 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Tyrant of Chaos
Tyrant of Chaos - 07.06.2023 03:24

My only problem with this was that it only works in the current scene, if you load the next level which is in the next scene the new scene doesn't have access to the volume control of the first scene.

Ответить
Vincenzo Didodo
Vincenzo Didodo - 19.05.2023 04:29

Hey Jason, Thanks for the great video. For some reason the audio mixer doesn't seem to work on android devices for some reason. Slider works perfectly fine in the editor but when I build to android sliders don't do anything. Have you had this issue as well?

Ответить
AchimTheEagle
AchimTheEagle - 09.03.2023 16:28

You said we could download the code and the images but there isn't a way to do it. :(

Ответить
Ligqos
Ligqos - 19.02.2023 18:35

Awesome video, wonder tho how to keep the slider and audiomixer data throughout the scenes, so you can adjust them lets sayin the gameplay scene, and even after gameover and returnin to menu, or does audio mixer do this already in itself so no need to twiddle with DontDestroyOnLoad and such?
Atm have ton of sounds in a audiomanager script, realized tho all those audios are played from that manager so if I add enemy sounds to it the won't be coming from the enemies even tho I call the sound from the enemy script. probably have to make separate script and audio source for the enemies. Tho there prob is a better way I just don't see/know of.

Atm I control mastervolume with audiolistener.volume in the main menu with a slider, the value seems to persist throughout the scenes but having problems adding that same slider to other scenes and make it so they remember the value, prob have to do add that PlayerPrefs script you did to save the data.

Ответить
chieko kurokumo
chieko kurokumo - 27.10.2022 05:57

This can also be tweaked to be used with Binary/JSON data storage as well :) Thx!

Ответить
Mark
Mark - 24.10.2022 12:02

Yeah - so right. And the same applies to films nowadays too - dialogue is low, and background music is feckin deafening! One of my pet hates. And I ALWAYS include these controls in a game.

Ответить
Yud Nai
Yud Nai - 07.09.2022 20:30

very cool video. very nice. good job.

Ответить
LoOnar Forge
LoOnar Forge - 25.04.2022 17:38

Thanks Jason, great video. Question: I have changed the min and max values for the slider to match those from the mixer master volume, this way seems way easier to me. Any reason you didn't do it this way? Or it is just a matter of a prefference?

Ответить
Jayadev Haddadi
Jayadev Haddadi - 22.04.2022 12:36

Tupac Shakur 😎

Ответить
Dinosaurpower
Dinosaurpower - 10.04.2022 18:59

Thank you so much for this tutorial!!

Ответить
Havie
Havie - 10.02.2022 04:43

Why does _mixer.SetFloat(_volumeParameter, -infinity) result in your mixer going to -80 (mute) but mine resets it to 0? oO newer unity versions? slider val 0 passed into mathf.log10() seems to be -inf

Ответить
AlexDev
AlexDev - 06.02.2022 14:39

Wow! That was incredible !

Ответить
UMT Cats Eye
UMT Cats Eye - 29.01.2022 00:53

I have run into a problem, when I load my settings menu, put a value to 0.0001 and then load out and back in to the settings menu, I cant change the volume at all. any ideas?

Ответить
mintydog06
mintydog06 - 27.01.2022 11:22

There is a bug with setting the mixer using the value * multiplier. When the slider is at 0, the multiplier is at 0, which means the value is not being changed, and so the mixer goes back to full volume.

UPDATE

I realised my min value was set to 0, and not 0.001. I didn't see you change that in the video. Either way it's working now. Thanks for the tutorial.

Now I'm gonna go and save the volume values in a scriptable object to persist and save to a save file.

Ответить
brohammed95
brohammed95 - 03.11.2021 23:46

Where is the code and where is the graphics for the mixer button?

Ответить
Project Abash
Project Abash - 17.10.2021 00:28

I just learned how to remove all the haskkey references I've been using lol.

Ответить
Kap Koder
Kap Koder - 14.10.2021 01:41

Holy smokes Jason, your able to code things and explain them so fast it scares me 😅😅 you saved to player prefs under a minute IN A TUTORIAL

Ответить
puretrack06
puretrack06 - 13.10.2021 18:25

FMOD Video?

Ответить
BehindTheFX
BehindTheFX - 25.09.2021 02:31

Great, thanks for the tutorial! 1 question though, why use the AddListener method inside the script, when you can use the OnChangedValue method from the slider itself in the inspector?

Ответить