Version: 2022.2

EditorToolbarDropdownToggle

class in UnityEditor.Toolbars

切换到手册

描述

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允许设置值而不接收更改通知(如果有)。
ShowDropDownAllow to set the visibility of the drop down button.

Events

dropdownClickedAction triggered when the dropdown is clicked.