Skip to content

jcs090218/Unity.Prefs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT Unity Engine Release openupm openupm

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

License

Copyright (c) Jen-Chieh Shen. All rights reserved.

See LICENSE for details.

About

Retrieve list of EditorPrefs/PlayerPrefs

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages