Available on Asset Store: https://assetstore.unity.com/packages/tools/utilities/serialized-dictionary-lite-110992
Forum Thread: https://forum.unity.com/threads/released-serializable-dictionary-lite-now-allowing-custom-editor-for-key-field.518178
This repo contains a class SerializableDictionaryBase that can be inherited to be able to have a serializable dictionary.
For using the dictionary all you need is to create a class that inherits SerializableDictionaryBase and use Serializable Key and Value types. For any further explanation open op the Documentation file.
- Import the asset from the Asset Store
- Manually import the .unitypackage via Assets > Import Package
- Clone/Download this repository and move it to your Unity project's Assets folder
- Via Unity Package Manager
- Manually, add the following to your project packages/manifest.json:
"com.rotaryheart.serializabledictionarylite" : "https://github.com/RotaryHeart/SerializableDictionaryLite.git"
- Automatically, open Package Manager window
- Click the + button
- Select Add package from git URL
- Paste
https://github.com/RotaryHeart/SerializableDictionaryLite.git
- Manually, add the following to your project packages/manifest.json:
- Via Open UPM with the following command
openupm add com.rotaryheart.serializabledictionarylite
Use the Unity forum thread for any contact: https://forum.unity.com/threads/released-serializable-dictionary-lite-now-allowing-custom-editor-for-key-field.518178
The API documentation can be found at https://www.rotaryheart.com/Wiki/SerializableDictionaryLite.html
A pro version of the asset is available: https://forum.unity.com/threads/serializable-dictionary-pro.869377/