# EditorPrefs

> Stores and accesses Unity Editor preferences.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public sealed class EditorPrefs
```

## Remarks

On macOS, EditorPrefs are stored in `~/Library/Preferences/com.unity3d.UnityEditor5.x.plist`.

On Windows, EditorPrefs are stored in the registry under the `HKCU\Software\Unity Technologies\Unity Editor 5.x` key.

On Linux, EditorPrefs are stored in `~/.local/share/unity3d/prefs`.

## Static Methods

| Method                                                                            | Description                                                                                                                                     |
| --------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| [DeleteAll](/engine/6000.0/script-reference/unityeditor/editorprefs/deleteall.md) | Removes all keys and values from the preferences. Use with caution.                                                                             |
| [DeleteKey](/engine/6000.0/script-reference/unityeditor/editorprefs/deletekey.md) | Removes key and its corresponding value from the preferences.                                                                                   |
| [GetBool](/engine/6000.0/script-reference/unityeditor/editorprefs/getbool.md)     | Returns the value corresponding to key in the preference file if it exists.                                                                     |
| [GetFloat](/engine/6000.0/script-reference/unityeditor/editorprefs/getfloat.md)   | Returns the float value corresponding to key if it exists in the preference file.                                                               |
| [GetInt](/engine/6000.0/script-reference/unityeditor/editorprefs/getint.md)       | Returns the value corresponding to key in the preference file if it exists.                                                                     |
| [GetString](/engine/6000.0/script-reference/unityeditor/editorprefs/getstring.md) | Returns the value corresponding to key in the preference file if it exists.                                                                     |
| [HasKey](/engine/6000.0/script-reference/unityeditor/editorprefs/haskey.md)       | Returns true if key exists in the preferences file.                                                                                             |
| [SetBool](/engine/6000.0/script-reference/unityeditor/editorprefs/setbool.md)     | Sets the value of the preference identified by key.                                                                                             |
| [SetFloat](/engine/6000.0/script-reference/unityeditor/editorprefs/setfloat.md)   | Sets the float value of the preference identified by key.                                                                                       |
| [SetInt](/engine/6000.0/script-reference/unityeditor/editorprefs/setint.md)       | Sets the value of the preference identified by key as an integer.                                                                               |
| [SetString](/engine/6000.0/script-reference/unityeditor/editorprefs/setstring.md) | Sets the value of the preference identified by key. Note that EditorPrefs does not support null strings and will store an empty string instead. |
