DropdownMenu

class in UnityEngine.UIElements

/

Implemented in:UnityEngine.UIElementsModule

Description

Represents a dropdown menu.

Properties

allowDuplicateNames Determines whether the menu allows duplicate names.

Public Methods

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.

Did you find this page useful? Please give it a rating: