Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SearchFieldBase<TextInputType, T>

The base class for a search field.
Read time 7 minutesLast updated 8 days ago

Definition

public abstract class SearchFieldBase<TextInputType, T> : VisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, INotifyValueChanged<T> where TextInputType : TextInputBaseField<T>, new()

Static Fields

Value

Description

cancelButtonOffVariantUssClassNameUSS class name of cancel buttons in elements of this type, when they are off.
cancelButtonUssClassNameUSS class name of cancel buttons in elements of this type.
popupVariantUssClassNameUSS class name of elements of this type, when they are using a popup menu.
searchButtonUssClassNameUSS class name of search buttons in elements of this type.
textInputUssClassNameUSS class name of text input elements in elements of this type.
textUssClassNameUSS class name of text elements in elements of this type.
ussClassNameUSS class name of elements of this type.

Properties

Property

Description

placeholderTextA short hint to help users understand what to enter in the field.
searchButtonThe search button.
textInputFieldThe text field used by the search field to draw and modify the search string.
valueThe object currently being exposed by the field.

Methods

Method

Description

ClearTextFieldMethod used when clearing the text field. You should usually clear the value when overriding the method.
FieldIsEmptyTells if the field is empty. That meaning depends on the type of T.
SetValueWithoutNotifySets the value for the toolbar search field without sending a change event.

Inheritance

Inherited Members