Class Menu
Menu UI element.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class Menu : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
Constructors
| Name | Description |
|---|---|
| Menu() | Default constructor. |
Fields
| Name | Description |
|---|---|
| containerUssClassName | The Menu container styling class. |
| selectableUssClassName | The Menu selectable mode styling class. |
| ussClassName | The Menu main styling class. |
Properties
| Name | Description |
|---|---|
| contentContainer | The content container of the Menu. |
| parentItem | The parent MenuItem of this Menu (if this Menu is a sub-menu). |
Methods
| Name | Description |
|---|---|
| CloseSubMenus() | Close all sub-menus. |
| ExecuteDefaultActionAtTarget(EventBase) | Executes logic after the callbacks registered on the event target have executed, unless the event is marked to prevent its default behaviour. EventBase{T}.PreventDefault. |
| GetMenuItems() | Get all the MenuItems of this Menu (including sub-menus). |