PlayerPrefs class supports saving and reading data types, floating-point types, integer types and string types in 3.
The corresponding functions are:
SetInt(); Save integer data;
GetInt(); Reading the shaping data;
set float(); Save floating-point data;
GetFlost(); Reading floating-point data;
SetString(); Save string data;
GetString(); Reading string data;
The usage of these functions is basically the same. Set is used for saving and Get is used for reading. The PlayerPrefs class also provides playerprefs. deletekey (key: string) to delete the specified data; PlayerPrefs。 DeleteAll () deletes all keys; PlayerPrefs。 HasKey (key: string) method to judge whether data exists.