Version: 2023.2

SearchColumn

class in UnityEditor.Search


实现接口:ISerializationCallbackReceiver

切换到手册

描述

Search columns are used to display additional information in the Search Table view.

变量

binderIf defined, the binder delegate is used to apply contextual data to a visual element.
cellCreatorIf defined, the cell creator delegate is used to customize how the search column displays its information.
comparerIf defined, the comparer delegate is used to sort search results based on the value displayed in that column.
contentThe content is used to display the search column label and image in its header.
drawerIf defined, the drawer delegate is used to customize how the search column displays its information.
getterIf defined, the getter delegate is used to customize how the search field data is extracted and transformed for display (see SearchColumn.drawer).
nameName of the search column.
optionsVarious options used to define how a search column is presented.
pathThe path can be used by the column delegates to interpret how the data can be manipulated.
providerThe provider is used to indicate which search column provider (see SearchColumn) is used to define the search column format.
selectorThe selector is used by the column delegates to fetch the search field data.
setterIf defined, the setter delegate writes back the value to the corresponding field of the search result.
widthThe column width is used to set the Search Table view column width.

构造函数

SearchColumnCreates a new search column.

公共函数

InitFunctorsInitialize the column provider functors.

静态函数

EnumerateEnumerate a set of columns for a variety of search items.