Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EditorToolbarDropdownToggle

A control that is both a toggle and a dropdown used with EditorToolbarElementAttribute.
Read time 9 minutesLast updated 7 days ago

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