Changing a parameter with a UI Slider in Unity

Hello,

I have a slider and I want it to change a parameter with it, I’m not much of a programmer, and couldn’t really find a good tutorial on how to do it.

Could someone help me with a script and a tutorial?
(I used the example project fmod and the footsteps event and called the slider Foot, the only thing I changed in the sliderscript setting is max value 3 (since the footsteps event goes from 0 to 3)
I’m getting kinda frustrated after trying for 4 hours being so stupid to not figure it out…

https://docs.unity3d.com/ScriptReference/UI.Slider-onValueChanged.html

Using the example above, you can link a slider to your script which allows you to access the current value.
You could also add a reference to a FMODStudioEventEmitter and use the SetParameter function with the value from the slider.