Do graphics settings save automatically?

I try calling

PlayerPrefs.SetInt("UnityGraphicsQuality",5);

but that doesn’t actually change anything. Do graphics settings save automatically or am I doing something wrong?

If you SetInt, that int remains stored until gathered again. To actually change graphics settings, you need to GetInt and set the graphics quality to the number you retrieve.

Yes, I know that. What I meant was that it didn’t actually change in the playerprefs file. There’s a pre made variable in there called “UnityGraphicsQuality”, which I’m trying to change.

When I change graphics quality in my games, close and re-open, the settings do save. I haven’t added any type of code to save settings, it seems to be done automatically.

Well, then I’ll just stay the fuck off that value and let Unity do the saving :wink: