class in UnityEngine.UIElements
/
Implemented in:UnityEngine.UIElementsModule
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
CloseA drop-down menu.
AppendAction | Add an item that will execute an action in the drop-down menu. The item is added at the end of the current item list. |
AppendSeparator | Add a separator line in the menu. The separator is added at the end of the current item list. |
ClearItems | Clear the all items from the menu. |
InsertAction | Add an item that will execute an action in the drop-down menu. The item is added at the end of the specified index in the list. |
InsertSeparator | Add a separator line in the menu. The separator is added at the end of the specified index in the list. |
MenuItems | Get the list of menu items. |
PrepareForDisplay | Update the status of all items by calling their status callback and remove the separators in excess. This is called just before displaying the menu. |
RemoveItemAt | Remove the menu item at index. |