Prefs
August 23, 2024 ยท View on GitHub
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.