How to pass slider values through scenes?

Hi!

I have sliders which values decrease over time. How to pass the latest values when I change the scene? Thank you in advance!

The only way I can think of is via setting a float playerpref in your scene change method.

Should I do it something like PlayerPrefs.GetFloat(“name”, currentValue); ?