ドキュメント

Unity Engine

Unity Engine

AdvancedDropdownItem

Items that build the drop-down list.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public class AdvancedDropdownItem : IComparable

Properties

Property

Description

childListThe list of child items of this item.
enabledTrue if the item is enabled.
iconIf set, this icon will be rendered to the left of the item name.
idThe unique identifier for an item.
nameName shown for this item when rendered.

Methods

Method

Description

AddChildAdds the given AdvancedDropdownItem child to the children list. The child's ID will be computed based on the parent's ID and the child's name to ensure uniqueness. If you wish to use a custom ID, assign the AdvancedDropdownItem.id property on the child after calling this method.
AddSeparatorAdds a separator to the list of children in the drop-down.