Unity编辑器下方便的ListView
class :UnityEditorInternal.ReorderableList
Draw:
void OnEnable(){
reorderableList = new ReorderableList(serializedObject, prop);
reorderableList.drawElementCallback = (rect, index, isActive, isFocused) =>
{
var element = prop.GetArrayElementAtIndex(index);
rect.height -= 4;
rect.y += 2;
EditorGUI.PropertyField(rect, element);
};
}
void Draw(){
reorderableList.DoLayoutList();
}