Answers for "how to store some variables on the device in unity"

C#
0

how to store some variables on the device in unity

//Example using the PlayerPrefs system to store integers on the local device storage
//Writing data
PlayerPrefs.SetInt("myPref", 5);
//Reading data
myint = PlayerPrefs.GetInt("myInt");
Posted by: Guest on March-29-2020

Code answers related to "how to store some variables on the device in unity"

C# Answers by Framework

Browse Popular Code Answers by Language