Version: 2022.3

LightingExplorerTableColumnConstructor

切换到手册
public LightingExplorerTableColumn (LightingExplorerTableColumn.DataType type, GUIContent headerContent, string propertyName, int width, LightingExplorerTableColumn.OnGUIDelegate onGUIDelegate, LightingExplorerTableColumn.ComparePropertiesDelegate compareDelegate, LightingExplorerTableColumn.CopyPropertiesDelegate copyDelegate, int[] dependencyIndices);

参数

type 根据我们使用的 LightingExplorer.DataType,将使用内置的 compare 和 draw 方法。如果希望完全重载此参数,请使用 LightingExplorer.DataType.Custom。
headerContent 列标题的名称。
propertyName 要使用的对象属性的名称。如果使用 LightingExplorer.DataType.Name,请选择“null”。
width 列的宽度。最小宽度为此值除以 2。默认值为 100。
onGUIDelegate 如果要以不同于默认方式的方式绘制属性,请提供此委托。如果使用 LightingExprlorer.DataType.Custom,必须覆盖此参数。
compareDelegate 如果要以不同于默认方式的方式对属性排序,请提供此委托。如果使用 LightingExplorer.DataType.Custom,必须覆盖此参数。
copyDelegate 如果要以不同于默认方式的方式复制属性,请提供此委托。
dependencyIndices 如果需要依赖于另一个 Serialized 属性而不是列中的相应属性,请使用此字段指定要包含的索引。队列为索引 0。

描述

构造函数。


Did you find this page useful? Please give it a rating: