View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0
- Last updated
- First released
- Unity version
- 2022.3.28 or later
- Package size
- 435 KB
- Files
- 15
- Favorites
- 8
- Views in the past week
- 2
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
PlayerPrefsJson
An alternative to the built-in PlayerPrefs that saves them in the JSON format.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 3
PlayerPrefsJson screenshot 1
About this asset
PlayerPrefsJson is a lightweight alternative for the Unity's built-in PlayerPrefs. Instead of using system's registry, it allows to save data in the convenient JSON format, making it easier to read, write or share files, locally or in the cloud.
The asset requires minimal setup and can be added on top of an already existing project. It can be used to easily substitute standard PlayerPrefs in a safe manner or it can work alongside them as well.
PlayerPrefsJson uses the popular Json.NET framework by Newtonsoft to ensure the industry's standard way of handling JSON files. It also includes an easy-to-use editor tool which helps to define custom settings according to your project's specific needs.
From the publisher's Asset Store listing.
Technical details
At its core PlayerPrefsJson provides a static class with the same API as the standard PlayerPrefs, with all the methods working in the same way:
- DeleteAll()
- DeleteKey()
- GetFloat()
- GetInt()
- GetString()
- HasKey()
- Save()
- SetFloat()
- SetInt()
- SetString()
PlayerPrefsJson methods also include optional parameters that can be used to seamlessly transition from standard PlayerPrefs to the JSON format, in case it's necessary in an ongoing project.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2022.3.28f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.