Api Editor AdvancedDropdownItem
class

AdvancedDropdownItem

public class AdvancedDropdownItem

A tree node for use with AdvancedDropdownWidget. Items with children are categories; items without children are selectable leaves.

Constructors

AdvancedDropdownItem()
AdvancedDropdownItem(String title, String icon, Object value)

Properties

Name Type Description
Title String
Icon String
Description String
Tooltip String
Value Object
PaintIcon Action<Rect, Single> Optional custom icon painting. Receives the icon rect and current opacity.
Children IReadOnlyList<AdvancedDropdownItem>
HasChildren Boolean

Methods

AdvancedDropdownItem Add(String title, String icon = null, Object value = null)

Add a child item and return it.

Void Add(AdvancedDropdownItem item)

Add an existing item as a child.

Void Clear()

Remove all children.

Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.AdvancedDropdownItem