Edit dictionary in Unity Inspector

Hi guys,

I love to keep my code clean, yet sometimes I am forced to make little hacks.
One commenly used hack for me is creating a seperate class containing two variables, one variable as a key and the other a value. This cheaty code I had to write everytime I’d needed to fake a serialized Dictionary or Hashmap.

After years Unity still has no way of serializing Dictionaries or Hashmaps. Does anyone know why?

Its not a high priority for them.

Plus there’s already threads to making Serializable Dictionaries written by the community. Myself included.

3 Likes