Cant Save/Load Gamma settings from slider

I have a slider that changes the Gamma. It works fine. I cant figure out how to save the settings/load the slider settings when I reopen the game. I got it to work for music slider settings but it doesnt seem to work for my Gamma slider. Any help please?



1 Like

It looks fine, but why is there only one variable in your savegame?

You need one for the sound and another for the gamma.

I tried a few ways but it still doesnt work. I know Im missing something but I just cant figure out what. This is from my test game. I like to get stuff working before I put it in my Main game, thats why it only has 1 variable. Just 1 for the Gamma.


Ok, sorry, I see it :melting_face:

Here

You’re moving the slider, but you’re not updating the save game. You need to change the float in the save game, then save it :smiley:

Do you have any code you could show me please? I tried a bunch of other things but nothing seems to be working.

1 Like

Im a idiot lol. It works! Thank you so much for the help!! :grin:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.