You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
tobyte[]
and deserializebyte[]
toobject
.The text was updated successfully, but these errors were encountered: