EditorToolbarDropdownToggle
A control that is both a toggle and a dropdown used with EditorToolbarElementAttribute.
Read time 9 minutesLast updated 7 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Toolbars
- Assembly: UnityEditor
- Inherits from: BaseField<bool>
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<bool>
public class EditorToolbarDropdownToggle : BaseField<bool>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<bool>
Constructors
Constructor | Description |
|---|---|
| EditorToolbarDropdownToggle() | Constructor. |
| EditorToolbarDropdownToggle(System.Action) | Constructor. |
| EditorToolbarDropdownToggle(System.String,System.Action) | Constructor. |
| EditorToolbarDropdownToggle(System.String,UnityEngine.Texture2D,System.Action) | Constructor. |
| EditorToolbarDropdownToggle(UnityEngine.Texture2D,System.Action) | Constructor. |
Properties
Property | Description |
|---|---|
| dropdownClickable | Clickable object for this dropdown. |
| icon | The icon associated with the element. |
| text | The text associated with the element. |
Methods
Method | Description |
|---|---|
| SetValueWithoutNotify | Allow to set a value without being notified of the change, if any. |
| ShowDropDown | Allow to set the visibility of the drop down button. |
Events
Member | Description |
|---|---|
| dropdownClicked | Action triggered when the dropdown is clicked. |