DropdownMenu
Represents a dropdown menu.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public class DropdownMenu
Properties
Property | Description |
|---|---|
| allowDuplicateNames | Determines whether the menu allows duplicate names. |
Methods
Method | Description |
|---|---|
| AppendAction | Adds an item that executes an action in the dropdown menu. |
| AppendSeparator | Adds a separator line in the menu. |
| ClearItems | Clears all items from the menu. |
| InsertAction | Adds an item that executes an action in the dropdown menu. |
| InsertSeparator | Adds a separator line in the menu. |
| MenuItems | Gets the list of menu items. |
| PrepareForDisplay | Gets the status of all items by calling their status callback and removes the excess separators. |
| RemoveItemAt | Removes the menu item at index. |