Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 private void OnAddCallback(BindingInfoList target)
 {
     target.AddElement();
 }