private ReorderableList CreateList(SerializedProperty property, BindingInfoList target) { var result = new ReorderableList(property.serializedObject, property); result.drawHeaderCallback += DrawHeaderCallback; result.elementHeightCallback += index => ElementHeightCallback(result, index); result.drawElementCallback += (rect, index, isActive, isFocused) => DrawElementCallback(result, rect, index); result.onAddCallback += list => OnAddCallback(target); return(result); }
private void OnAddCallback(BindingInfoList target) { target.AddElement(); }