PlayerPrefs Editor

The PlayerPrefs Editor allows you to create, see and delete PlayerPrefs in realtime inside Unity Editor without any code. It can be found in the Essentials >> PlayerPrefs Editor menu button.

PlayerPrefs Editor window

What Are PlayerPrefs

PlayerPrefs is a system created by Unity for easy persistent data saving. It uses key-value pairs to achieve this. Unfortunately, Unity doesn't provide any meaningful way to see all of the created PlayerPrefs. That's where this feature comes in!

Creating PlayerPrefs

You can create new PlayerPrefs in the PlayerPrefs Editor window by pressing the New PlayerPref button. When creating, you'll be asked for a new key, value and a value type. Upon creation, the new PlayerPref will be displayed in the PlayerPrefs Editor window.

Add New PlayerPref pop-up window

Modifying PlayerPrefs

You can directly modify PlayerPrefs by clicking on any one of the listed PlayerPrefs in the PlayerPrefs Editor window and changing its value. You can also change the type of the said PlayerPref by clicking on the dropdown next to the value.

PlayerPref entry

Deleting PlayerPrefs

You can delete a PlayerPref by right clicking on it and choosing Delete PlayerPref.

PlayerPref entry context menu

Applying Changes

All of the changes will take effect only when applied, meaning that you must hit the Apply button for these changed to take effect. Not applying the changes will result in every single change being reverted, including newly created PlayerPrefs, modified PlayerPrefs, and even deleted PlayerPrefs.

Filtering PlayerPrefs

You can search for and filter different PlayerPrefs based on the searched key, value or value type. You can do so by clicking on the magnifying glass icon in the search bar.

Search bar filtering options

EditorPrefs

PlayerPrefs Editor has also the capability to show you EditorPrefs. These are internal PlayerPrefs that are used by the Unity Editor, and other third-party plugins and packages. Be very careful when modifying these because even a slight mistake may result in the Unity Editor not behaving correctly. You can also perform the same actions such as creating, modifying, deleting and filtering on EditorPrefs.

EditorPrefs window

Show Internal PlayerPrefs

When editing PlayerPrefs, there is a checkbox below that says Show Internal PlayerPrefs. This shows the PlayerPrefs that the Unity Editor uses internally, and should never be changed manually.

Last updated