ToolbarSearchField
A search field for the toolbar. For more information, refer to UXML element ToolbarSearchField.
Read time 7 minutesLast updated 10 days ago
Definition
- Type: Class
- Namespace: UnityEditor.UIElements
- Assembly: UnityEditor
- Inherits from: SearchFieldBase<TextField, string>
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, INotifyValueChanged<string>
public class ToolbarSearchField : SearchFieldBase<TextField, string>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, INotifyValueChanged<string>
Static Fields
Value | Description |
|---|---|
| cancelButtonOffVariantUssClassName | USS class name of cancel buttons in elements of this type, when they are off. |
| cancelButtonUssClassName | USS class name of cancel buttons in elements of this type. |
| popupVariantUssClassName | USS class name of elements of this type, when they are using a popup menu. |
| searchButtonUssClassName | USS class name of search buttons in elements of this type. |
| textUssClassName | USS class name of text elements in elements of this type. |
| ussClassName | USS class name of elements of this type. |
Constructors
Constructor | Description |
|---|---|
| ToolbarSearchField() | Constructor. |
Properties
Property | Description |
|---|---|
| searchButton | The search button. |
Methods
Method | Description |
|---|---|
| ClearTextField | Removes the text when clearing the field. |
| FieldIsEmpty | Tells if the string is null or empty. |