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!
git clone
this repository, then throw the folder Editor
to your project
under the Assets
folder!
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);
}
- PlayerPrefsEditor by
@sabresaurus
- Retrieved list ofEditorPrefs
/PlayerPrefs
Copyright (c) Jen-Chieh Shen. All rights reserved.
See LICENSE for details.