To use, inherit this generic class to a non-generic version (no need to be public) and annotate [CustomPropertyDrawer(typeof(MyDictionary))] where MyDictionary is the name of non-generic dictionary.
More...
|
override float | GetPropertyHeight (SerializedProperty property, GUIContent label) |
|
override void | OnGUI (Rect position, SerializedProperty property, GUIContent label) |
|
To use, inherit this generic class to a non-generic version (no need to be public) and annotate [CustomPropertyDrawer(typeof(MyDictionary))] where MyDictionary is the name of non-generic dictionary.
Source: https://forum.unity3d.com/threads/finally-a-serializable-dictionary-for-unity-extracted-from-system-collections-generic.335797/
- Template Parameters
-
TKey | The type of keys in the dictionary. |
TValue | The type of values in the dictionary. |
◆ GetPropertyHeight()
◆ OnGUI()
The documentation for this class was generated from the following file: