PlayerPrefsJson 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

by Wojciech Grodzicki (opens in new tab)

2 ratings, too few to average

An alternative to the built-in PlayerPrefs that saves them in the JSON format.

Price Free

Get it free on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for PlayerPrefsJson, 6 months Current Free; lowest Free; highest Free in this period. $0 Jun Jul Aug Sep Oct Nov

Asset preview

1 / 3

PlayerPrefsJson screenshot 1

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

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP Custom
2022.3.28f1 Compatible Compatible Compatible Compatible

As listed on the Asset Store.