API ReferenceEditor
DropdownControlWidgetclass
Base class for dropdown control widgets with multi-select support.
Constructors1
Showing 1 constructors
public DropdownControlWidget(Sandbox.SerializedProperty property)
| Parameter | Type | Description |
|---|---|---|
| property | SerializedProperty | — |
No results match this filter.
Methods7
Showing 7 methods
protected Editor.Widget AddMenuOption(Editor.Widget canvas, string displayName, string icon, System.Func`1<bool> isSelected, System.Action onSelect)
| Parameter | Type | Description |
|---|---|---|
| canvas | Widget | — |
| displayName | string | — |
| icon | string | — |
| isSelected | Func<bool> | — |
| onSelect | Action | — |
protected virtual void OnDoubleClick(Editor.MouseEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MouseEvent | — |
Returns:
void—protected virtual void OnMouseClick(Editor.MouseEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MouseEvent | — |
Returns:
void—protected virtual void PaintControl()
Returns:
void—protected virtual void PaintDisplayText(Sandbox.Rect rect, Color color)
Override to paint the display text in the control
| Parameter | Type | Description |
|---|---|---|
| rect | Rect | — |
| color | Color | — |
Returns:
void—protected virtual void PopulateMenu(Editor.Widget canvas)
Override to populate the menu with options
| Parameter | Type | Description |
|---|---|---|
| canvas | Widget | — |
Returns:
void—public virtual void StartEditing()
Returns:
void—No results match this filter.
Properties4
Showing 4 properties
public virtual bool Editor.DropdownControlWidget.IsControlActive { get; set; }
Returns:
bool—public virtual bool Editor.DropdownControlWidget.IsControlButton { get; set; }
Returns:
bool—public virtual bool Editor.DropdownControlWidget.IsControlHovered { get; set; }
Returns:
bool—protected bool Editor.DropdownControlWidget.IsMultiSelect { get; set; }
Returns:
bool—No results match this filter.