AdvancedDropdownItem
Items that build the drop-down list.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Class
- Namespace: UnityEditor.IMGUI.Controls
- Assembly: UnityEditor.CoreModule
- Implements: IComparable
public class AdvancedDropdownItem : IComparable
Properties
Property | Description |
|---|---|
| childList | The list of child items of this item. |
| enabled | True if the item is enabled. |
| icon | If set, this icon will be rendered to the left of the item name. |
| id | The unique identifier for an item. |
| name | Name shown for this item when rendered. |
Methods
Method | Description |
|---|---|
| AddChild | Adds 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. |
| AddSeparator | Adds a separator to the list of children in the drop-down. |