Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DropdownMenu

Represents a dropdown menu.
Read time 1 minuteLast updated 6 days ago

Definition

public class DropdownMenu

Properties

Property

Description

allowDuplicateNamesDetermines whether the menu allows duplicate names.

Methods

Method

Description

AppendActionAdds an item that executes an action in the dropdown menu.
AppendSeparatorAdds a separator line in the menu.
ClearItemsClears all items from the menu.
InsertActionAdds an item that executes an action in the dropdown menu.
InsertSeparatorAdds a separator line in the menu.
MenuItemsGets the list of menu items.
PrepareForDisplayGets the status of all items by calling their status callback and removes the excess separators.
RemoveItemAtRemoves the menu item at index.