Hello, does anyone know is there a way to add a TagField to the reorderable list ?
MyList= new ReorderableList(serializedObject,
serializedObject.FindProperty("myList"),
true, true, true, true);
MyList.drawElementCallback =
(Rect rect, int index, bool isActive, bool isFocused) =>
{
var element = MyList.serializedProperty.GetArrayElementAtIndex(index);
rect.y += 2;
EditorGUI.PropertyField(
new Rect(rect.x, rect.y, 60, EditorGUIUtility.singleLineHeight),
element.FindPropertyRelative("Tag"), GUIContent.none);
EditorGUI.PropertyField(
new Rect(rect.x + 60, rect.y, rect.width - 60 - 30, EditorGUIUtility.singleLineHeight),
element.FindPropertyRelative("Obj"), GUIContent.none);
};
For now its just a string field