Version: 2021.3

EditorToolbarDropdownToggle

class in UnityEditor.Overlays

切换到手册

描述

A control that is both a toggle and a dropdown used with EditorToolbarElementAttribute.

变量

dropdownClickable Clickable object for this dropdown.
icon与元素关联的文本。
textThe icon associated with the element.

构造函数

EditorToolbarDropdownToggle构造函数。

公共函数

SetValueWithoutNotify允许设置值而不接收更改通知(如果有)。

Events

dropdownClickedAction triggered when the dropdown is clicked.