Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to delete unity's playerprebs data on pc?
How to delete unity's playerprebs data on pc?
Unity3d provides a class for local persistent storage and reading-PlayerPrefs. The working principle is simple. The data is saved in a file in the form of key-value pairs, and then the program can retrieve the last saved value according to this name.

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.