- Home /
The question is answered, right answer was accepted
Are there any major consequences when using Playerprefs?
I want to save one string and 16 floats in the Playerprefs, so that they are saved after scene change and game restart. Could that cause any issues?
Alright, thanks. The strings are only about 8 letters long.
Not really an issue so much as readability / quality of life, but PlayerPrefs aren't great at storing lots of things cleanly. Unless you're using a cute serialization and saving N values as a single string, then you're probably going to have N statements reading:
PlayerPrefs.SetFloat("n1", 50.0F);
PlayerPrefs.SetFloat("n2", 30.0F);
// ...
PlayerPrefs are not meant to save game data. They can be easily modified by a user, by opening the registry.
As the name suggests, PlayerPrefs are meant to save Player preferences, such as volume, screen size, quality level, ....
I am just saving the input device they chose last and the speed settings of the devices, like movement speed, cursor speed etc. From my understanding, I am using them right.
A config file would be more appropriate I$$anonymous$$HO ;)