#if UNITY_2019_4_OR_NEWER using System; using System.Collections.Generic; using UnityEditor; using UnityEngine; using UnityEditor.UIElements; using UnityEngine.UIElements; namespace YooAsset.Editor { public class TableColumn { /// /// 单元列索引值 /// internal int ColumnIndex; /// /// 单元元素集合 /// internal List CellElements = new List(1000); /// /// UI元素名称 /// public string ElementName { private set; get; } /// /// 标题名称 /// public string HeaderTitle { private set; get; } /// /// 单元列样式 /// public ColumnStyle ColumnStyle { private set; get; } /// /// 制作单元格元素 /// public Func MakeCell; /// /// 绑定数据到单元格 /// public Action BindCell; public TableColumn(string elementName, string headerTitle, ColumnStyle columnStyle) { this.ElementName = elementName; this.HeaderTitle = headerTitle; this.ColumnStyle = columnStyle; } } } #endif