文档

Unity Engine

Unity Engine

EditorToolbarDropdownToggle

A control that is both a toggle and a dropdown used with EditorToolbarElementAttribute.
阅读时间9 分钟最后更新于 1 个月前

Definition

public class EditorToolbarDropdownToggle : BaseField<bool>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<bool>

Constructors

Properties

Property

Description

dropdownClickableClickable object for this dropdown.
iconThe icon associated with the element.
textThe text associated with the element.

Methods

Method

Description

SetValueWithoutNotifyAllow to set a value without being notified of the change, if any.
ShowDropDownAllow to set the visibility of the drop down button.

Events

Member

Description

dropdownClickedAction triggered when the dropdown is clicked.

Inheritance

Inherited Members