Quantcast
Channel: Questions in topic: "playerprefs"
Viewing all articles
Browse latest Browse all 1333

Is there a need to check saving of PlayerPrefs

$
0
0
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.

Viewing all articles
Browse latest Browse all 1333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>