The Wayback Machine - https://web.archive.org/web/20200929182701/https://github.com/neon-age/LocalPreferences
Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

LocalPreferences

Better alternative for Unity's PlayerPrefs

Edit > Local Preferences > Player / Editor

LocalPrefsWindow
Made in Unity 2019.3, but should work with older versions.

Features

  • Save your Game or Editor preferences in JSON files
  • Encrypt game data with Advanced Encryption Standard
  • Manage data files in Editor Window (Playmode Supported)
  • Auto Save on player quit
  • Slighly faster than PlayerPrefs (even with enabled Encryption)

Performance

Set 1000 floats 10000 floats
LocalPrefs 3-6ms 30-50ms
PlayerPrefs 40-45ms 6,300ms
Get 1000 floats 10000 floats
LocalPrefs 4-6ms 32-40ms
PlayerPrefs 2ms 67ms
Encryption 1000 floats 10000 floats
Load 40-60ms 40-60ms
Save 40-60ms 40-60ms

Note: Not tested on Linux, Android.

TODO

  • Rijndael Encryption
  • Optimized scroll view
  • Support for more types (Texture as byte array, Matrix4x4, etc)
  • Delegate on preference changes
  • Default save file
  • Advanced search filter
  • Reordering
  • Documentation
  • Guideline on implementing custom types
  • Make asset as package
  • Get Async?

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.