How to delete ScreenManager PlayerPrefs?
Hi, I'm wondering if there is anyway to delete the PlayerPrefs that are created by the Screen Manager when you set a resolution.
They show up in the registry where the other PlayerPrefs keys do, under the names of
"Screenmanager Resolution Width_h..." and "Screenmanager Resolution Height_h...".
Is there any way for me to delete these? Or at least change them?
They appear to be in the same format as standard PlayerPrefs, being a string, then an underscore, h, and then a long number.
What I have tried is:
PlayerPrefs.DeleteKey ("Screenmanager Resolution Width");
PlayerPrefs.DeleteKey ("Screenmanager Resolution Height")
and
PlayerPrefs.SetInt ("Screenmanager Resolution Width",320);
PlayerPrefs.SetInt ("Screenmanager Resolution Height",240);
None of these appear to have made any change to the registry in the build version. In the editor, the last two make a key, but the Editor doesn't use these.
Does anyone know how to change or delete these, what I'm trying to do is to have the SplashScreen at the specific resolution of 320x240 (And also a FMV that plays after). I originally set this in the Default Resolution settings of the build options, and it works the first time, but then I have my menu system which automatically changes the resolution to their monitor or a chosen resolution. I want it so when the game starts up, it's in 320x240, no matter what the res was when it was last open, then I can change it after. I can't use Screen.SetResolution to do this, as I cannot run code before the splashscreen, only after.
Any help is very appreciated.
Sorry for any bad English.