My log shows I have set the volume to the desired lvl but the volume in my game does not change, nor do the volume controls on the editor mixer. Any ideas what I am doing wrong, Im getting no errors but also no visible affect? This is called on value changed from a slider, the console log shows the correct name and values
public void ChangeVol(string name, Slider vol)
{
mixer.SetFloat(name, vol.value);
float currentlvl;
mixer.GetFloat(name, out currentlvl);
Debug.Log("Changed " + name + " to " + vol.value + ". the current mixer lvl is " + currentlvl);
}
I have, Ive been starring at that part for the past hour, the bit that is confusing me is when i call back to the mixer with GetFloat it shows the new value has been set. I presume GetFloat would fail if it didnt find a mixer?, I also checked I had the correct mixer with the name tag and that came back correct as well.
What does the Debug.Log you made in your ChangeVol method says? Could you please paste it here?
BTW, please attach the images to your post here, not on third-party services, you can embed them into your post too, it’s easier to overlook what’s happening. You can upload images whhen you click upload a file button.