Player Prefs Utils
Prefs Utilities is a group of classes focused on increasing the functionality of the class EditorPrefs and PlayerPrefs in unity. Increasing the types of data available, encrypting and managing them.
The types of data you can save are:
float, int, string,
Uses AES-256 encryption.
Creates string type keys and converts them to the required data type so as not to generate unnecessary keys.
Easy creation of other script-based data types.
Secure your user data.
How does it work
== PlayerPrefs Editor ==
To open the PlayersPrefs Editor go to Window -> Player Prefs Editor
This will open an editor window which you can dock like any other Unity window.
= The Player Prefs List =
If you have existing saved player prefs you should see them listed in the main window. You can change the values just by changing the value text box, you can also delete one of these existing player prefs by clicking the X button on the right.
= Search =
The editor supports filtering keys by enterring a keyword in the search textbox at the top. As you type the search results will refine. Search is case-insensitive and if auto-decrypt is turned on it will also work with encrypted player prefs.
= Adding A New Player Pref =
At the bottom of the editor you'll see a section for adding a new player pref. There are toggle options to determine what type it is and a checkbox for whether the player pref should be encrypted. Once you've selected the right settings and filled in a key and value hit the Add button to instantly add the player pref.
= Deleting An Existing Player Pref =
To delete an existing player pref, click the X button next to the player pref in the list. You can also delete all player prefs by clicking the Delete All button at the bottom of the editor.
== PlayerPrefs Utilities ==
IMPORTANT: If using encryption, make sure you change the key specified in SimpleEncryption.cs, this will make sure your key is unique and make the protection stronger.
In PlayerPrefsUtility.cs you'll find a set of utility methods for dealing with encryption and also new data types. There is documentation within this file explaining how each method works. There is also additional documentation at