I'm making a racing game and on the main menu I want to have a volume slider so the player can adjust the volume from simply sliding it from right to left.
I currently have the Slider created and in position, I just need to know how to link it to the Audio.source?
Couldn’t you just link the two values using the slider’s “On Value Changed” event?
Add a new event to the slider’s “On Value Changed” section, drag your audio source to it, then select AudioSource.volume (the one in dynamic float, not static parameters). That should link the two values without requiring an extra script.
I found a YouTube video that used this method: - YouTube