Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EditorToolbarToggle

A toggle used with EditorToolbarElementAttribute.
Read time 7 minutesLast updated 14 days ago

Definition

public class EditorToolbarToggle : ToolbarToggle, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<bool>, IMixedValueSupport

Static Fields

Value

Description

ussClassNameUSS Class Name used to style the EditorToolbarToggle.

Constructors

Properties

Property

Description

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.

Methods

Method

Description

SetValueWithoutNotifyAllow to set a value without being notified of the change, if any.

Inheritance

Inherited Members