SerializedDictionary
Last updated
Was this helpful?
Last updated
Was this helpful?
Class in
Inherits from System.Object
An System.Collections.Generic.IDictionary`2
that can be serialized as part of a Unity object.
Prior to Unity 2020, dictionaries cannot be directly serialized by Unity. This class is a workaround; it provides an API identical to System.Collections.Generic.Dictionary2</code> , and stores its contents as two <code>System.Collections.Generic.List1
s: one for TKey
, and one for TValue
.
TKey
The type of key used in the dictionary.
TValue
The type of value used in the dictionary.