Awesome
Prefs
Retrieve list of EditorPrefs/PlayerPrefs
There 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
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 ofEditorPrefs
/PlayerPrefs
License
Copyright (c) Jen-Chieh Shen. All rights reserved.
See LICENSE for details.