help with setting up slider with mixer

Hi! i hope this is right place to ask this question!
I made slider that changes sound value and is connected to singleton soundManager
script by onvalueChange(single) property
Problem is i can change volume with it as long as i am on first scene(main menu), but when i leave that scene and return later to change volume i can move slider and slider value changes but volume is not affected.
Any idea what should i look after?
I dont think it will help but here is function i call by onValueChange event

public void setMusicLvl(float lvl)
    {
        mixerMaster.SetFloat("musicVol", Mathf.Log10(lvl) * 20);
        PlayerPrefs.SetFloat("musicVol", lvl);
    }

Try this tutorial

It helped me to change the volume with a slider and save the changed value through scenes

1 Like

Thanks for replying! fixed it already in other thread
https://forum.unity.com/threads/problem-with-changing-volume-with-slider.890689/#post-5855080