Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

DropdownMenu

class in UnityEngine.UIElements

/

Implemented in:UnityEngine.UIElementsModule

Description

Represents a dropdown menu.

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.