Unity Save (PlayerPrefs)

Hello everyone,

I have a question,

if I save my game

example

PlayerPrefs.SetString (“MyKey” MyValue);

I can load ok, but if you have another game, which will use that file with the same name

Another game replacing the game save:

PlayerPrefs.SetString (“MyKey” MyOtherValue).

Unit will know which is the key to my game?

or

PlayerPrefs.DeleteAll ().

will remove all data stored on the Unity3D game ??
or just my game?

Player Prefs are per game, so if you make 2 unity games use the same name for a string in player prefs they won’t collide or interfere with each other.

1 Like

Seems to save based on “[company name][product name]”

1 Like

thanks every body