I am storing simple user data through PlayerPrefs and I was wondering if there was any need to check that the saved was successful before carrying on? For example:
PlayerPrefs.SetInt("KeyName", 10);
PlayerPrefs.Save();
if(PlayerPrefs.HasKey("KeyName")){
//Do action here
} else {
//throw error
}
P.S. I do understand that the PlayerPrefs save before exiting too.
↧