public MultiColumnListView(TreeViewState state, MultiColumnHeader multicolumnHeader, ListModel model, SerializedObjectEntry genericSerializedData) : base(state, multicolumnHeader, model) { this.genericSerializedData = genericSerializedData; // Custom setup rowHeight = kRowHeights; columnIndexForTreeFoldouts = 0; showAlternatingRowBackgrounds = true; showBorder = true; customFoldoutYOffset = (kRowHeights - EditorGUIUtility.singleLineHeight) * 0.5f; // center foldout in the row since we also center content. See RowGUI extraSpaceBeforeIconAndLabel = kToggleWidth; multicolumnHeader.sortingChanged += OnSortingChanged; Reload(); }
public static void AddGenericSerializedEntry(SerializedObjectEntry entry) => genericSerializedEntries.Add(entry);