Unity Audio: How to make a UI volume slider (the right way)

  Рет қаралды 96,837

John Leonard French

John Leonard French

Күн бұрын

Пікірлер: 220
@ayiboroberts7503
@ayiboroberts7503 5 жыл бұрын
Thanks so much. I didn’t understand it from Brackey but understood it from you
@vivekdesigner5601
@vivekdesigner5601 5 жыл бұрын
same bro..
@MaruskaStarshaya
@MaruskaStarshaya 4 жыл бұрын
Brackeys is a garbage, he make videos for views, not for sharing information, I avoid his vids.
@leosabou6975
@leosabou6975 4 жыл бұрын
fuck you then Maruha Starshaya
@UnknownPerson-nl7te
@UnknownPerson-nl7te 4 жыл бұрын
@@MaruskaStarshaya truth is something else u never understand
@MaruskaStarshaya
@MaruskaStarshaya 4 жыл бұрын
​@@UnknownPerson-nl7te as you with english grammar, hahah
@VirtualTurtleGames
@VirtualTurtleGames 4 жыл бұрын
Great video! Summary: Instead of using audioMixer.SetFloat("yourValue", sliderValue); use audioMixer.SetFloat("yourValue", Mathf.Log10(sliderValue) * 20); Easy fix :)
@PhotoMakers
@PhotoMakers 4 жыл бұрын
Thank you a ton!!!!!!! I had it all working before, except the logarithmic change! Works perfectly!!
@MarianSiwiak
@MarianSiwiak 5 жыл бұрын
Thank you! Short, clear, to the point, and works as advertised! Cheers!
@ridlr9299
@ridlr9299 3 жыл бұрын
Is nobody gonna talk about how much of a banger that song is?
@JordanNeff-PGH
@JordanNeff-PGH 3 жыл бұрын
Thanks John, exactly what I needed! So many garbage tutorials out there that don't go over using the mixer and you did it perfectly in under 10 minutes! Super helpful during a game jam :)
@NationOfBacon
@NationOfBacon 4 жыл бұрын
Really appreciate how easy you made this to understand without taking too long to explain. Thanks for showing a better way to do sliders.
@ReplayerTV
@ReplayerTV 4 жыл бұрын
So simple yet so forgoten about that decibel scale is logarithmic, thanks for your help, works perfectly.
@Delvarn
@Delvarn 3 жыл бұрын
I was having serious issues getting it working but followed this and.... bingo! Thanks a lot, the blog post about the dynamic float was super helpful too!
@Cooeewebdesign
@Cooeewebdesign Жыл бұрын
I was really struggling to add a slider to control my volume until I watched this video, wow super easy. Great Video tutorial, simple and to the point 🙂
@VsevolodPankratov
@VsevolodPankratov Жыл бұрын
I have tried various script options and only your method works fine in version 2021. And it also saves the settings perfectly. I subscribe to your channel.
@philunityunreal7228
@philunityunreal7228 4 жыл бұрын
Very nice and simple. I had issue with the Audio Volume in my project, i saw many tutorials which provided too many things. Your video is very basic and helped me much more than all other tutorials i saw. Thanks a lot and nice background music by the way.
@shadowgodthegamer5738
@shadowgodthegamer5738 2 жыл бұрын
On point. I was looking for this kind of solution to the logarithmic problem
@mintydog06
@mintydog06 2 жыл бұрын
Thanks, I didn't know about the Dynamic Float option, it's very useful.
@micaheberz6020
@micaheberz6020 3 жыл бұрын
Thanks! Glad I learned it the right way from you first!
@JuanPablo-pt5gs
@JuanPablo-pt5gs 2 жыл бұрын
It works, I forgot to say. But in the part of the event of the volume, when they ask for the object, use the script.
@SambinoDev
@SambinoDev 2 жыл бұрын
Awesome! Always great when these tutorials are concise, thanks m8
@Erik-ki9ir
@Erik-ki9ir 4 жыл бұрын
Thanks for the help, just wanted to mention for those whose dynamic float still not working mine worked with the last script in his blog, replacing "MusicVolume" with your own Parameter name, place the slider object in the Inspector and place the Mixer in the Audio's FIle inspector if you have one.
@rodraix
@rodraix 2 жыл бұрын
Thanks man! This video had help me a lot with a little game I'm working on. Keep doing this type of videos, they're interesting and helpful :D
@EVHlivesforever
@EVHlivesforever 5 жыл бұрын
This tutorial is awesome man thanks so much! GREAT info for anybody making a menu system!
@MadeByJoey
@MadeByJoey 4 жыл бұрын
Thank you, John, for teaching me how to make a volume slider!
@sasquatchbgames
@sasquatchbgames 2 жыл бұрын
this was fantastic, thanks so much! Implementing right now
@ChristopherReimschussel
@ChristopherReimschussel 5 жыл бұрын
Love the tutorial. You made it easy and straight forward to understand.
@salmyismail8524
@salmyismail8524 4 жыл бұрын
hye want to ask you using this setting making audio playing through all the scene?
@DrewVanCamp
@DrewVanCamp 4 жыл бұрын
wow, thank you! very well demonstrated. always wondered how this conversion needed to be handled. it's somewhat black magic math to me, but it's such an easy solution. you're awesome.
@ConsideraCore
@ConsideraCore 4 жыл бұрын
Just for those who are wondering why you have to set the min slider to 0.001, it's because Log(0) is very bad, its undefined and will cause NaNs =)
@Merivio
@Merivio Жыл бұрын
Thumbs up from me! Quick and easy to follow!
@TheCodesnippet
@TheCodesnippet 4 жыл бұрын
Simple and crystal clear, thanks for this tutorial man! And obviously I subscribed your channel !
@piedpiperplayz3363
@piedpiperplayz3363 4 жыл бұрын
thank you. This video helped me a tonne, I like the way you explain what you're doing as you do it. Keep it up my dude.
@BlackJar72
@BlackJar72 2 жыл бұрын
Well, -3 dB would be half the power and -6 dB half the sound preasure; Half the subjective loudness is -10 dD.
@theyourayclips7609
@theyourayclips7609 4 жыл бұрын
Bro, i want to ask you using this setting making audio playing through all the scene?
@ZacharyAghaizu
@ZacharyAghaizu 3 жыл бұрын
Thanks, how do we make it so that the lower the number, the bigger the change. Basically inverse of this?
@noxmetrica35
@noxmetrica35 2 жыл бұрын
Straight to the point, and very effective, thanks a lot!
@SaadTheGlad
@SaadTheGlad 4 жыл бұрын
Can you please help me on this? Im trying to get my audio slider UI to persist between scenes. The value is stored and I am using PlayerPrefs but the slider doesn't change to fir it..
@sapphiretigress1
@sapphiretigress1 3 жыл бұрын
This is awesome! Thanks for the great tutorial :D This is my first volume slider and you explained it perfectly.
@squareff255
@squareff255 5 жыл бұрын
GREAT video! Thank you so much! And thanks for that little workaround script on your blog! Works great!
@eloreneloreneloreneloreneloren
@eloreneloreneloreneloreneloren Жыл бұрын
thanks I keep returning to this video
@TrentGallant
@TrentGallant 2 жыл бұрын
Thank you! Awesome Tutorial!
@SpriteTheDude
@SpriteTheDude 3 жыл бұрын
for impatient people just put this in the slider method mixer.SetFloat( "ExposedVariableName", Mathf.Log10(sliderValue) * 20);
@ryan_garfield
@ryan_garfield 2 жыл бұрын
mixer.SetFloat mixer.setFloat is invalid
@MrPotatoHQ
@MrPotatoHQ 3 жыл бұрын
Hi! I'm having some issues... I have my volume slider in my Settings scene, and the scene that my game starts up on is the main menu, so when I start the game, the music is full volume, but then when I enter the settings scene it goes to what the siders value is, I need help and don't know how to fix this. Thanks
@NemesisTWarlock
@NemesisTWarlock 3 жыл бұрын
Check the webpage in the desctription, it goes over and solves this issue.
@ForgottenRussian
@ForgottenRussian 3 жыл бұрын
6:54 im having troubles linking the script to the slider. when I click the function on the "On Value Changed" area, it pops up with only "MonoScript", instead of "SetVolume"
@DheyssonSS
@DheyssonSS 3 жыл бұрын
create an empty gameobject and place the "SetVolume" script in this object, after assign this empty gameobject on the "On Value Changed". my english is very bad :)
@alejandrojimenez214
@alejandrojimenez214 4 жыл бұрын
Hi, slider keeps resetting its value every time I switch through scenes (I know I’m kind of late, but could you help?) This is my script: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.Audio; using UnityEngine.Experimental.UIElements; public class VolumeValue : MonoBehaviour { public AudioMixer mixer; public Slider musicSlider; void Start() { musicSlider.value = PlayerPrefs.GetFloat("MusicVol", 1f); mixer.SetFloat("MusicVol", PlayerPrefs.GetFloat("MusicVol")); } public void Setlevel(float sliderValue) { mixer.SetFloat("MusicVol", sliderValue); PlayerPrefs.SetFloat("MusicVol", sliderValue); mixer.SetFloat("MusicVol", Mathf.Log10 (sliderValue) *20+10); } } I copied someone else’s script that had the same problem here on the comments😅... no luck for me tho
@alejandrojimenez214
@alejandrojimenez214 4 жыл бұрын
Never mind, I just saw you website on the pin comment. THANKS!
@MaruskaStarshaya
@MaruskaStarshaya 4 жыл бұрын
Simple, fast and understandably. Thanks a lot!
@handsomelessking
@handsomelessking 3 жыл бұрын
did i do an update? idk, but that unity project just didn't work, i made another game since than, followed the tutorial 1 to 1 and it worked, so i don't know what was the problem
@howiey3242
@howiey3242 4 жыл бұрын
was having this exact problem with my volume slider, thank you! :)
@bestdialogues7656
@bestdialogues7656 4 жыл бұрын
thank you so very much this is what I've been looking for.
@alexh1687
@alexh1687 5 жыл бұрын
Yeah but what's the inverse function, to go from log back to linear (to display the current level for example) ?
@alexh1687
@alexh1687 5 жыл бұрын
Thanks a lot ! @@JohnLeonardFrench
@muzboz
@muzboz 4 жыл бұрын
Great tutorial, thanks John. I appreciate you making these things. :D
@kmtk82
@kmtk82 4 жыл бұрын
Thank you SO much John, immensely helpful
@mikeshvedov6981
@mikeshvedov6981 2 жыл бұрын
Thanks you a dude on the internet!
@tabooization123
@tabooization123 3 жыл бұрын
This is helpful and easily understandable. Thanks.
@ARTHUR14523
@ARTHUR14523 4 жыл бұрын
I believe you should make more videos from how to do thinks the right way in unity. Because I have some problems with the popular youtubers like Brackeys. They show you how to do it the easy way and not how to do it hte right way. In the beggining you say wow he is good because i learned how to do it easy. But in the future when you start to make your own serious games you might have problems. Thanks
@happytofu5
@happytofu5 3 жыл бұрын
Thank you so much! Works like a charm 🧙‍♀️
@Chapali9a
@Chapali9a 3 жыл бұрын
Works like a charm. Thank you very much.
@Ali-dl2wx
@Ali-dl2wx 2 жыл бұрын
I really loved it! simple and fast
@FreakyUptownGirl
@FreakyUptownGirl 4 жыл бұрын
Hi, thank you very much for the video. Changing the volume works for my game, as long as I do not use the logarithmic scale. If I use the Log10-function it doesn't work any more. As soon as I change the value, the sound is completely turned off. If I turn the slider back to full volume, the music starts playing. What am I doing wrong? Thank you! Here is the code: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Audio; using UnityEngine.UI; public class SettingsMenu : MonoBehaviour { public AudioMixer audioMixer; public void SetVolume (float volume) { audioMixer.SetFloat("volume", Mathf.Log10(volume)*20); } it works this way: public void SetVolume (float volume) { audioMixer.SetFloat("volume", volume); }
@FreakyUptownGirl
@FreakyUptownGirl 4 жыл бұрын
@@JohnLeonardFrench Thank you so much for your reply! This was indeed part of the issue. Another part was just a unity bug I guess. I noticed that while the music was playing, I did't see any peaks in the audio mixer. I solved it by unchecking and rechecking the "Audio Mixer Suspend" option. I discovered it by chance, so it was a little weird. But now it is working. :) Thanks for your support!
@purnabratakar7176
@purnabratakar7176 3 жыл бұрын
Hi there, i was wondering how the method gets the slider value while changing the audio level. Like there is no reference to the slider, yet the method knows the slider value. Please enlighten me
@Eryczeeeg03
@Eryczeeeg03 4 жыл бұрын
I followed your tips and when i press a Play button music doesn't play. I have to go to settings menu and move in some directions a slider, then music start playing...
@sergiodeleon1371
@sergiodeleon1371 4 жыл бұрын
Hey John French awesome video do you know if unity has fixed this issue?
@gamerito100
@gamerito100 2 жыл бұрын
How can I use this? I tried the same code, but it won't work on my slider, I think the compiler says it is wrong, but I don't know how to see what it is
@ARTHUR14523
@ARTHUR14523 4 жыл бұрын
Thanks a lot you are the best. How didnt i knew you so long. And i wondered why the slider was in the middle and the sound was almost mute. Can you please explain me how to set the sliders value = to the mixers? Because i have a slider in the main menu options, but in the game when you pause i have also a slider so you can set the volume in game. But it starts at full always. Thanks a lot again
@kirbeku3107
@kirbeku3107 2 жыл бұрын
Great video, why do you type so loud?
@jerrys.lawson5418
@jerrys.lawson5418 2 жыл бұрын
Thank you that was amazing!
@Tbout72
@Tbout72 4 жыл бұрын
Using audio source for the music was easy for testing the music volume. But if in my game in my scene I have a lot of objects with audio source each gameobject have audio source each one for another sound effect like door open or air condition or some engine how can I control them all with one slider to control all the sound sfx or how it called ? I want to add a second slider to control the sound effects volume so I can control the music and/or the effects sounds.
@Guddeisr
@Guddeisr 4 жыл бұрын
Oh Thank you so much!! Pretty simple and clear!!
@rafaelresende5413
@rafaelresende5413 3 жыл бұрын
How to make the inverse, put the mixer value on slider?
@CowmasterStudios
@CowmasterStudios 6 жыл бұрын
This works great! However, my slider keeps resetting its Value to "1" when I transition between scenes. How do I get it to retain its "value" between scenes?
@CowmasterStudios
@CowmasterStudios 6 жыл бұрын
using System.Collections; using System.Collections.Generic; using UnityEngine.Audio; using UnityEngine.UI; using UnityEngine; public class SettingsMenu : MonoBehaviour { public AudioMixer audioMixer; public Slider musicSlider; public Dropdown resolutionDropdown; Resolution[] resolutions; void Start() { //musicSlider.value = PlayerPrefs.GetFloat("musicVolume", 1f); audioMixer.SetFloat("musicVolume", PlayerPrefs.GetFloat("musicVolume")); } public void SetResolution(int resolutionIndex) { Resolution resolution = resolutions[resolutionIndex]; Screen.SetResolution(resolution.width, resolution.height, Screen.fullScreen); } public void SetMusicVolume(float musicvolume) { //audioMixer.SetFloat("musicVolume", musicvolume); PlayerPrefs.SetFloat("musicVolume", musicvolume); audioMixer.SetFloat("musicVolume", Mathf.Log10(musicvolume) * 20); } public void SetSFXVolume(float sfxvolume) { //audioMixer.SetFloat("sfxVolume", sfxvolume); audioMixer.SetFloat("sfxVolume", Mathf.Log10(sfxvolume) * 20); } public void SetFullscreen (bool isFullscreen) { Screen.fullScreen = isFullscreen; } }
@CowmasterStudios
@CowmasterStudios 6 жыл бұрын
Ha! You're right, I did flip the line I meant to comment out! Great tutorial. Super clear and informative. Do you plan on doing more?
@CowmasterStudios
@CowmasterStudios 6 жыл бұрын
@@JohnLeonardFrench As a quick addition to this one, could you show how to play a music/sfx blip every time you update the slider in-game? To help the user hear what their changes are actually doing.
@minesmr
@minesmr 4 жыл бұрын
I have a question, I did the same exact thing as you told me to, but if I play the Scene the Sliderhandle goes to Zero, but the Volume is 100%, but if I click the Handle and drag it a little bit, the Music suddenly connects and gets very quiet, why doesn't it connect at the very start of the Scene Play ? Also btw. very well explained, understood everything! ;)
@minesmr
@minesmr 4 жыл бұрын
@@JohnLeonardFrench Thank you, for the oppurtunity, it's very nice from you! I'm going to make sure, that I'll understand! ;)
@purnabratakar7176
@purnabratakar7176 3 жыл бұрын
I have the same problem where changing the slider value to 0 makes the game sound go to max
@iluWinter
@iluWinter 4 жыл бұрын
Super helpful thank you!
@steegosaurus
@steegosaurus 5 жыл бұрын
This helped a lot. Thank you.
@rshum85
@rshum85 3 жыл бұрын
Great video, thanks!!
@fiyerooo1
@fiyerooo1 5 жыл бұрын
Hi there, out of curiosity, how does Unity know to take the slider's "Value" as the parameter for the SetVolume function? Does it just assume that Value will be the dynamic variable that the dynamic float will be using, since that's like the 'main thing' of the slider?
@stefsteenvoorden1576
@stefsteenvoorden1576 5 жыл бұрын
@@JohnLeonardFrench What do you mean exactly with: "when the function takes a single float parameter"? I'm currently having the issue of not being able to see the dynamic float option, and I don't understand why. (I have set the function to public ofcourse)
@diagolo9286
@diagolo9286 2 жыл бұрын
Really helpful, thanks a lot mate!!
@JLS_Media
@JLS_Media 4 жыл бұрын
If you get any monobehaviour error make sure to copy the first 3 lines of code at the top exact as the same as his: using UnityEngine; using System.Collections; using UnityEngine.Audio;
@italianstyle7611
@italianstyle7611 3 жыл бұрын
i don't understand, why do i have to use an Audio Mixer? To have a better volume management? I edit simply the volume of AudioSource/AudioListener
@plasmaint
@plasmaint 3 жыл бұрын
For example, you have different musics and sound effects. You can attach their audio sources to one mixer, one for the music and one for the SFX.
@italianstyle7611
@italianstyle7611 3 жыл бұрын
@@plasmaint in my project I had like 2-3 audiosources to distinguish the SFX from background music. In each situation an audio source can play a specific clip with its own volume thanks to a Volume Manager script, Idk if it's the same thing...
@DayMoniakkEdits
@DayMoniakkEdits 4 жыл бұрын
Is it possible to display the volume percentage ? I tried to figure out on my own but it wasn't a success xD
@DayMoniakkEdits
@DayMoniakkEdits 4 жыл бұрын
Nevermind, I figured out ! Just add mathf.round(value *100) !
@schankwart0815
@schankwart0815 4 жыл бұрын
@@DayMoniakkEdits thank you, that helped
@dwexecutioner
@dwexecutioner 4 жыл бұрын
Thank you so much, I was looking for that.
@nachitengameplays4127
@nachitengameplays4127 5 жыл бұрын
Duddeeee I get a spam of messages that says the following: UnassignedReferenceException: The variable mixer of VolumeController has not been assigned. You probably need to assign the mixer variable of the VolumeController script in the inspector. VolumeController.SetLevel (Single valorSlider) (at Assets/VolumeController.cs:12) UnityEngine.Events.InvokableCall`1[System.Single].Invoke (Single args0) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:207) UnityEngine.Events.UnityEvent`1[System.Single].Invoke (Single arg0) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent_1.cs:58) UnityEngine.UI.Scrollbar.Set (Single input, Boolean sendCallback) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Scrollbar.cs:224) UnityEngine.UI.Scrollbar.Set (Single input) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Scrollbar.cs:207) UnityEngine.UI.Scrollbar.UpdateDrag (UnityEngine.EventSystems.PointerEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Scrollbar.cs:304) UnityEngine.UI.Scrollbar.OnDrag (UnityEngine.EventSystems.PointerEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Scrollbar.cs:354) Could someone help plsssss...
@sasakiluna
@sasakiluna 4 жыл бұрын
Doesn't work for me have everything correct, looked 50x over the code and i use unity 2018.4.10f1. Any ideas why it doesn't work ?
@masterlewzilla2116
@masterlewzilla2116 3 жыл бұрын
Works smoothly
@charlestheninja
@charlestheninja 4 жыл бұрын
How can i set the value of the slider to start with the value of the audiomixer volume? I'`m having an issue changing scenes that when i open the settings menu the slider is showing up "100%" but the music is not with the volume in "100%" because i changed it previosly in another scene to another volume. I just can't figure it out the math to do the inverse maths. ;( Help me!
@gildedguy
@gildedguy 3 жыл бұрын
@@JohnLeonardFrench absolute legend
@kaushalmishra3901
@kaushalmishra3901 4 жыл бұрын
Dynamic parameters option not showing in slider and drop down menu in unity. Can you help me out to solve this issue? I like your videos and I am also your subscriber. Thank you and help me out to fix this issue.
@Jester-8-bit
@Jester-8-bit 3 жыл бұрын
does this work between scenes i must know
@Tbout72
@Tbout72 4 жыл бұрын
Why when changing resolution in my main menu when running the game through the exe built file and not in the editor the whole ui elements get blurry and I can't click on buttons or change ui's elements liek sliders all I can do is click and change the resolution again and if I will change the resolution back to the default in my case 1920x1080 then it will not be blurry again and I will be able to click buttons and change sliders again ? This is a link for my question, But I can't figure yet what's wrong and how to fix it : forum.unity.com/threads/why-when-changing-resolution-while-game-running-using-the-exe-built-file-everything-is-too-blurry.787229/
@bensmith8723
@bensmith8723 4 жыл бұрын
at 6:26 when you save and exit the script, a little box called "Mixer" appears under "Script". when i did this that box didnt appear, and just to make sure i wasnt doing anything wrong i re-did it with the exact variable names and code you used letter for letter, but it still wouldnt work, so i was unable to connect the mixer to the script
@bensmith8723
@bensmith8723 4 жыл бұрын
so i solved the problem after about half an hour, turns out that a) i had a typo, b) i encountered the problem in your comment about the unity 2019.2.5 bug, so i used your blog to help fix it. thanks very much this was a very useful tutorial
@bensmith8723
@bensmith8723 4 жыл бұрын
@@JohnLeonardFrench thanks! was a great tutorial, easy to follow along, even if i did have to go back a second time to figure out where I went wrong, but it helped me learn a bit more about unity and c# scripts anyway.
@fadrdn
@fadrdn 4 жыл бұрын
Thank you, this tutorial helps me a lot! But there's a one problem. If I stop the game or go back to my scene where the slider at, it reset to value 1 even tho I already change it into 0.0001. Help?
@MattHassing
@MattHassing 3 жыл бұрын
if on awake you try to get the value of the slider with the .getfloat func and then set you're unity slider to that value then it'll save through scenes! unfortunately, you can't use this method to save to file though. this will look somewhat like this: using UnityEngine.UI; public Slider sliderVal; public float sliderpercentage; private void Awake() { musicmixer.GetFloat("musicVolume", out sliderpercentage); sliderVal.value= Mathf.Pow(10f,(sliderpercentage / 20)); }
@donkeylrp6282
@donkeylrp6282 3 жыл бұрын
@@MattHassing Man, I love you So much, Thank you
@ThiagoPrego
@ThiagoPrego Жыл бұрын
Thank you so very much. May the Lord bless you always.
@CHE6yp
@CHE6yp 5 жыл бұрын
Thanx man, this was helpful!
@alomstw9430
@alomstw9430 3 жыл бұрын
I'm very much obliged to you.You helped me a lot
@nikolaallegro9178
@nikolaallegro9178 5 жыл бұрын
Thank you, man! This was excellent!
@zackarygonzo2062
@zackarygonzo2062 3 жыл бұрын
he smacks that keyboard harder than my mom slaps me
@cindyespindola4946
@cindyespindola4946 3 жыл бұрын
Great video thank you so much!
@NICKBRUTE
@NICKBRUTE 4 жыл бұрын
Thanks! this was very helpful!
@MirageDreamer550
@MirageDreamer550 3 жыл бұрын
So I created script and unity tells me that sliderValue doesn't exist and I dont have free space for audio mixer though i made it public pls help
@MirageDreamer550
@MirageDreamer550 3 жыл бұрын
ok nevermind i solved it
@AlexB-go1nd
@AlexB-go1nd 5 жыл бұрын
Hey, I'm getting the error "Exposed name does not exist: Volume." Can anyone help me out?
@haachamachama7
@haachamachama7 3 жыл бұрын
Why not make the slider just range from -80 to 20 or 0? I'm not being snarky, I really don't have much experience with audiomixers, but making it range from -80 to 20 and start at 0 worked fine for my game, no need to log10 it.
@haachamachama7
@haachamachama7 3 жыл бұрын
@@JohnLeonardFrench Ah, I gotcha. Thanks for the reply!
@leabarrionuevo
@leabarrionuevo 4 жыл бұрын
Hello! How are you? I need help. How can I access the "Mute" button from some UI button or togle?
@leabarrionuevo
@leabarrionuevo 4 жыл бұрын
@@JohnLeonardFrench sure, just that my idea is to use 4 independent channels and mute one at a time, maybe calling the audiosouces components and ticking the mute cell can. it will work?
@leabarrionuevo
@leabarrionuevo 4 жыл бұрын
@@JohnLeonardFrench it could work!! , I'll try. thank you very much for taking the time to answer me
@KuriVideosOficial
@KuriVideosOficial 4 жыл бұрын
But how you show the % on the volume txt?
@Decimalis
@Decimalis 4 жыл бұрын
Thanks so much, epic!
@ellienyan
@ellienyan 3 жыл бұрын
works great!
Unity Audio Tutorial - Adding Sounds to the Sun Temple Part 1: Fire SFX
24:39
John Leonard French
Рет қаралды 4,2 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 719 М.
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 125 МЛН
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,8 МЛН
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 26 МЛН
SAVE & LOAD SYSTEM in Unity
18:20
Brackeys
Рет қаралды 1,1 МЛН
Can I Run Youtube Entirely From My Terminal? (No Browser)
15:31
Unity AUDIO Volume Settings Menu Tutorial
9:24
Rehope Games
Рет қаралды 68 М.
The Best FREE Software for Game Development! (In my Opinion)
11:06
The AutoHotkey Experience
12:07
Bog
Рет қаралды 50 М.
How to make AWESOME Scene Transitions in Unity!
19:45
Brackeys
Рет қаралды 948 М.
An Aseprite Crash Course In 30 Minutes
31:47
AdamCYounis
Рет қаралды 1,1 МЛН
I Remade YouTube From Scratch Using Just Bash
17:51
icitry
Рет қаралды 49 М.
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 125 МЛН