Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AdvancedDropdownItem

Items that build the drop-down list.
Read time 1 minuteLast updated 8 days ago

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.