mattak / Unidux

Redux Architecture for Unity 🎩
MIT License
386 stars 27 forks source link

Separate dependency of JsonUtility #88

Closed mattak closed 7 years ago

mattak commented 7 years ago

JsonUtility cannot handle Dictionary<TKey,TValue>. So we cannot save state into json file which contains Dictionary. To avoid this issue, replace serialization dependency from JsonUtility to Json.NET, MessagePack-CSharp, ZeroFormatter, and so on... What all we need is serialize object to byte[] and deserialize byte[] to object.