Better alternative for Unity's PlayerPrefs
Edit > Local Preferences > Player / Editor
![LocalPrefsWindow](https://camo.githubusercontent.com/98c189f22a964ab56e2cd35f925b9d5c9c68d04633bdd2727953cad386779f3b/68747470733a2f2f692e696d6775722e636f6d2f5757734f626b4c2e706e67)
Made in Unity 2019.3, but should work with older versions.
- 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)
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.
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?