文档

Unity Engine

Unity Engine

DropdownMenu

Represents a dropdown menu.
阅读时间1 分钟最后更新于 1 个月前

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.