The PlayerPrefs Editor is located in the top menu at Tools/BG Tools/PlayerPrefs Editor. It’s a standard dockable window, so place it wherever it helps to be productive.
The PlayerPrefs Editor window displays:
- (A) Filter field
- (B) Toggle ‘System changes monitoring’ behavior
- (C) Refresh data
- (D) Delete all data
- (E) Operating system and path to PlayerPrefs data
- (F) PlayerPrefs data list (Key, Type, Value)
- (G) Add/Remove a PlayerPrefs entry
- (H) Toggle visibility of system defined PlayerPrefs
The PlayerPrefs Editor allow to add, remove and edit PlayerPrefs data.
Add a new entry
Press the ‘+’ button and select the type of the new PlayerPref entry. It’s not possible to modify this type later. Add the key for the new entry in the upcoming dialog field. Additionally the dialog will provide feedback when it detected unintended overrides or invalid characters.
Remove a existing entry
Select the entry from the list that you want to delete. Press the ‘-’ button to remove this entry. Confirm the warning dialog to finish the operation.
Modify a existing entry
To change a value of a existing entry do this directly in the value field in the PlayerPref list.
Monitoring system changes
The plugin can monitor changes at runtime automatically and keep the view up-to-date. This detection is active by default, but it can be turned off over the (B) button in the toolbar.
This package includes two samples for testing purposes:
Test Value Menu
Adds new entries into the top menu Tools/BG Tools/PlayerPrefs Test Values. This allows easily to add text values to the PlayerPrefs of the current project.
Simple UI that manipulates PlayerPrefs entries on runtime.
This version of PlayerPrefs Editor is compatible with the following versions of the Unity Editor:
2017.4 and later (recommended)
Windows, MacOS, Linux
Due to technical on MacOS it take time to update the persistent file that stores the PlayerPrefs. To avoid inconsistent data the plugin will show a loading screen until the data can be fully refreshed. Sorry for the inconvenience.
Keep in mind that it’s possible to deactivate the automatic refresh in the settings.