CreateMenu(IPanel)
Creates an instance of AbstractGenericMenu that is valid at Runtime or within the Editor.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public static AbstractGenericMenu CreateMenu(this IPanel panel)
Parameters
The panel that will create the menu.
Returns
Type | Description |
|---|---|
| AbstractGenericMenu | An instance of |
Remarks
If the is an , creates a . If the is a , creates a .
panelEditorPanelGenericOSMenupanelRuntimePanelGenericDropdownMenu