Version: 2023.1

EditorToolbarToggle

class in UnityEditor.Toolbars

切换到手册

描述

A toggle used with EditorToolbarElementAttribute.

静态变量

ussClassNameUSS Class Name used to style the EditorToolbarToggle.

变量

iconThe icon associated with the toggle.
offIconThe icon associated with the toggle when the value is false.
onIconThe icon associated with the toggle when the value is true.
textThe text associated with the toggle.
textIconThe text icon associated with the toggle.

构造函数

EditorToolbarToggle构造函数。

公共函数

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