Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

[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

arrowUssClassNameUSS class name of arrow indicators in elements of this type.
popupVariantUssClassNameUSS class name of elements of this type, when they are displayed as popup menu.
textUssClassNameUSS class name of text elements in elements of this type.
ussClassNameUSS class name of elements of this type.

Constructors

Constructor

Description

ToolbarMenu()Constructor.

Properties

Property

Description

menuThe menu.
variantThe display styles that you can use when creating menus.

Enums

Enum

Description

ToolbarMenu.VariantDisplay styles for the menu.

Inheritance

Inherited Members