I have a class which acts like a dictionary but uses two lists instead:
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class ListDictionary<T>
{
private List<string> _keys;
private List<T> _values;
public ListDictionary()
{
_keys = new List<string>();
_values = new List<T>();
}
// ... etc
}
I want to write a CustomPropertyDrawer for it but I’m getting the following error:
Here’s my property drawer:
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
[CustomPropertyDrawer(ListDictionary<T>)]
public class ListDictionaryDrawer : PropertyDrawer
{
public override void OnGUI (Rect position, SerializedProperty property, GUIContent label)
{
EditorGUI.BeginProperty (position, label, property);
EditorGUI.EndProperty ();
}
}
I tried variations of the class name (ListDictionary, ListDictionary<>, and etc) but I haven’t gotten it to work. How do I go about fixing this? On a related note, are there any tutorials on creating a custom property drawer for C#? I’m currently going off one that is for javascript.

