Class ToolbarMenu
A drop-down menu for the toolbar.
Inheritance
ToolbarMenu
Inherited Members
Namespace: UnityEditor.UIElements
Syntax
public class ToolbarMenu : TextElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, ITextElement, INotifyValueChanged<string>, IToolbarMenuElement
Constructors
ToolbarMenu()
Constructor.
Declaration
public ToolbarMenu()
Fields
arrowUssClassName
USS class name of arrow indicators in elements of this type.
Declaration
public static readonly string arrowUssClassName
Field Value
Type | Description |
---|---|
String |
popupVariantUssClassName
USS class name of elements of this type, when they are displayed as popup menu.
Declaration
public static readonly string popupVariantUssClassName
Field Value
Type | Description |
---|---|
String |
textUssClassName
USS class name of text elements in elements of this type.
Declaration
public static readonly string textUssClassName
Field Value
Type | Description |
---|---|
String |
ussClassName
USS class name of elements of this type.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
String |
Properties
menu
The menu.
Declaration
public DropdownMenu menu { get; }
Property Value
Type | Description |
---|---|
DropdownMenu |
Implements
text
Declaration
public override string text { get; set; }
Property Value
Type | Description |
---|---|
String |
Overrides
variant
The display styles that you can use when creating menus.
Declaration
public ToolbarMenu.Variant variant { get; set; }
Property Value
Type | Description |
---|---|
ToolbarMenu.Variant |