Save data like username and score on a local device using PlayerPrefs. You can save strings, integers and floats. A basic example would look something like this:
Save:
PlayerPrefs.SetString("playerName", "Oxmond");
Load:
PlayerPrefs.GetString("playerName");
····················································································
♥ Subscribe to Oxmond Tutorials. We upload new tutorials every day:
https://bit.ly/SubscribeOxmondTutorials
● Download the scripts here:
https://oxmond.com/c-lesson-how-to-sa...
● Free Assets from the Unity Assets Store:
https://assetstore.unity.com/lists/to...
😷👕 Need a face mask / developer T-shirt? Drop by our merchandise shop and get a 20% DISCOUNT on your first purchase by using the discount code YOUTUBE. Just follow this link:
https://shop.oxmond.com/discount/YOUTUBE
Some links might be affiliate links. Any support is truly appreciated so we can keep on making high quality content :)
#learnunity #unitytutorial #videogametutorial
····················································································
Visit our website for more tips & tricks:
https://oxmond.com
····················································································
Try our Bumperball game:
iOS:
https://apple.co/2CGNr7F
Android:
https://bit.ly/BumperballAndroid