protected virtual GUITableState DrawTable(Rect rect, SerializedProperty collectionProperty, GUIContent label, TableAttribute tableAttribute) { if (tableAttribute.properties == null && tableAttribute.widths == null) { return(GUITable.DrawTable(rect, tableState, collectionProperty, GUITableOption.AllowScrollView(false))); } else if (tableAttribute.widths == null) { return(GUITable.DrawTable(rect, tableState, collectionProperty, tableAttribute.properties.ToList(), GUITableOption.AllowScrollView(false))); } else { return(GUITable.DrawTable(rect, tableState, collectionProperty, GetPropertyColumns(tableAttribute), GUITableOption.AllowScrollView(false))); } }
protected override GUITableState DrawTable(Rect rect, SerializedProperty collectionProperty, GUIContent label, TableAttribute tableAttribute) { if (tableState != null) { rect.width = Mathf.Min(rect.width, tableState.totalWidth + 20f); } if (tableAttribute.properties == null && tableAttribute.widths == null) { return(GUITable.DrawTable(rect, tableState, collectionProperty, GUITableOption.AllowScrollView(false), GUITableOption.Reorderable())); } else if (tableAttribute.widths == null) { return(GUITable.DrawTable(rect, tableState, collectionProperty, tableAttribute.properties.ToList(), GUITableOption.AllowScrollView(false), GUITableOption.Reorderable())); } else { return(GUITable.DrawTable(rect, tableState, collectionProperty, GetPropertyColumns(tableAttribute), GUITableOption.AllowScrollView(false), GUITableOption.Reorderable())); } }