Unity-SerializableDictionary icon indicating copy to clipboard operation
Unity-SerializableDictionary copied to clipboard

[Feature-Requests | Nice to haves]

Open der-hugo opened this issue 3 years ago • 0 comments

Not an issue but I have a few suggestions how to improve usability:

  • Allow elements to be re-ordered in the Inspector (like lists and arrays) - I know order shouldn't matter in a Dictionary but still this would help to have an overview

    To make this easier it would probably be better to not store/serialize keys and values in individual collections internally but rather have a class SerializedKeyValuePair and store a single list/array of these instead

  • Have a Size field like for lists and arrays

  • Get rid of the blocker for duplicate keys

    rather highlight according items stronger (e.g. full red background) and display an Error Helpbox but still allow to add more items to it. I really didn't like the fact that when I want to reference e.g. 5 Transform as keys I would need to hit +, drag in the first object, hit + drag in the second object, etc

    I would rather (also see before) either insert the target size once and then fill in the references or at least hit + 5 times right away and then insert the references etc.

der-hugo avatar Feb 16 '22 08:02 der-hugo