options menu UI doesnt save when switching scenes

i’ve made an options menu from brackeys tutorial, every thing works but when i switch the menu scene to other scene then get back to the options menu, every thing still works except the UI gets back to defult
for example when i change the volume slider position and get back to options menu the volume slider UI gets to default, but the volume doesn’t change

when i changed the volume slider

when i got back to the options scene it got back to default

the problem is not not with the volume only its with all other UI

You should save the configuration when you exit the screen and set everything back before you open that screen.
You can use PlayerPrefs to save all the values.