ドキュメント

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.