So, I have a custom Unity UI options menu with Music and SFX sliders. When I move them, the volume of SFX or Music does not change, except for when I move them to 0, then the music/sounds stop. I double checked my settings, and all seems to be in order.
When I move the sliders on runtime, I get PlayerPrefs Key 'AC Save_0' saved in the console.
The Global variables linked to Options Data change values in sync with me moving the sliders on runtime.
The SFX has a Sound component with SFX selected in it. When I attached it to an Object with an Audio Source, however, the volume there did not change and only changed to 0 once I reached the 0 part of my settings slider on runtime.
I added the Music to the Music storage. Again, no change in volume only mutes when I move the music slider to 0.
What am I doing wrong, please?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
This is the ActionList on change of the SFX slider. Music one is done the same way.

Do the variables take the expected values when adjusting the sliders?
Open up the Save File Manager via the top of the Settings Manager. Are the audio volumes there set correctly?
Rather than linking your Sliders to variables, does it work if you instead link them to the volumes directly?
The global variables do. But now I checked the Safe File Manager, and I see I have double variables for the sounds and music. That's probably the cause. But now I am totally confused how did this happen.
When I linked the sliders directly, nothing changed. I always had to select ActionList on change to none, otherwise id be unable to move the sliders at all.
I think I found the solution. I had the slider set for values between 1 and 20 with whole numbers. But in fact, it should be between 0 and 1. I let the setup keep using the global variables and changed the slider properties in the menu prefab. Now it seems to work! Thank you for guiding me in the right direction, Chris.
Is this the only way, or is it actually possible to have a larger volume interval than 0 and 1?
The volume needs to be between 0 and 1, but you can map the Slider to e.g. 1 to 10 and divide the value by 10 before updating the volume.