https://github.com/jcs090218/unity.prefs
Retrieve list of EditorPrefs/PlayerPrefs
https://github.com/jcs090218/unity.prefs
prefs unity
Last synced: 10 days ago
JSON representation
Retrieve list of EditorPrefs/PlayerPrefs
- Host: GitHub
- URL: https://github.com/jcs090218/unity.prefs
- Owner: jcs090218
- License: mit
- Created: 2023-09-30T06:59:09.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-23T10:03:56.000Z (8 months ago)
- Last Synced: 2024-11-02T08:30:43.247Z (6 months ago)
- Topics: prefs, unity
- Language: C#
- Homepage: https://openupm.com/packages/com.jcs090218.prefs/
- Size: 261 KB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://opensource.org/licenses/MIT)
[](https://unity3d.com/get-unity/download/archive)
[](https://github.com/jcs090218/Unity.Prefs/releases/latest)
[](https://openupm.com/packages/com.jcs090218.prefs/)
[](https://openupm.com/packages/com.jcs090218.prefs/)# Prefs
> Retrieve list of EditorPrefs/PlayerPrefsThere isn't an easy way to retrieve key & value pair from EditorPrefs/PlayerPrefs.
This tiny library help you retrieve those data!*P.S. See [EditorPrefs][] and [PlayerPrefs][] for more information!*
## 💾 Installation
`git clone` this repository, then throw the folder `Editor` to your project
under the `Assets` folder!## 🔨 Usage
```cs
const Prefs.PrefType type = Prefs.PrefType.Editor; // Or .Player for `PlayerPrefs`PrefPair[] prefs = Prefs.Prefs.GetPrefs(type);
foreach (PrefPair pair in prefs)
{
Debug.Log(pair.Key + " : " + pair.Value);
}
```## 📌 Credits
- [PlayerPrefsEditor][] by **`@sabresaurus`** - Retrieved list of `EditorPrefs`/`PlayerPrefs`
## License
Copyright (c) Jen-Chieh Shen. All rights reserved.
See [LICENSE](./LICENSE) for details.
[EditorPrefs]: https://docs.unity3d.com/ScriptReference/EditorPrefs.html
[PlayerPrefs]: https://docs.unity3d.com/ScriptReference/PlayerPrefs.html[PlayerPrefsEditor]: https://github.com/sabresaurus/PlayerPrefsEditor