Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ToolbarSearchField

A search field for the toolbar. For more information, refer to UXML element ToolbarSearchField.
Read time 9 minutesLast updated a day ago

Definition

[Icon("UIToolkit/Icons/ToolbarSearchField.png")][UxmlElement]public class ToolbarSearchField : SearchFieldBase<TextField, string>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, INotifyValueChanged<string>

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.
textUssClassNameUSS class name of text elements in elements of this type.
ussClassNameUSS class name of elements of this type.

Constructors

Constructor

Description

ToolbarSearchField()Constructor.

Properties

Property

Description

searchButtonThe search button.

Methods

Method

Description

ClearTextFieldRemoves the text when clearing the field.
FieldIsEmptyTells if the string is null or empty.

Inheritance

Inherited Members