ToolbarMenu
A drop-down menu for the toolbar. For more information, refer to UXML element ToolbarMenu.
Read time 10 minutesLast updated an hour ago
Definition
- Type: Class
- Namespace: UnityEditor.UIElements
- Assembly: UnityEditor.CoreModule
- Inherits from: TextElement
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IVisualElementScheduler, ICustomStyle, IBindable, INotifyValueChanged<string>, ITextEdition, ITextElementExperimentalFeatures, IExperimentalFeatures, ITextSelection, IToolbarMenuElement
[Icon("UIToolkit/Icons/ToolbarMenu.png")][UxmlElement]public class ToolbarMenu : TextElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IVisualElementScheduler, ICustomStyle, IBindable, INotifyValueChanged<string>, ITextEdition, ITextElementExperimentalFeatures, IExperimentalFeatures, ITextSelection, IToolbarMenuElement
Static Fields
Value | Description |
|---|---|
| arrowUssClassName | USS class name of arrow indicators in elements of this type. |
| popupVariantUssClassName | USS class name of elements of this type, when they are displayed as popup menu. |
| textUssClassName | USS class name of text elements in elements of this type. |
| ussClassName | USS class name of elements of this type. |
Constructors
Constructor | Description |
|---|---|
| ToolbarMenu() | Constructor. |
Properties
Enums
Enum | Description |
|---|---|
| ToolbarMenu.Variant | Display styles for the menu. |