EditorToolbarToggle
A toggle used with EditorToolbarElementAttribute.
Read time 7 minutesLast updated 14 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Toolbars
- Assembly: UnityEditor
- Inherits from: ToolbarToggle
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<bool>, IMixedValueSupport
public class EditorToolbarToggle : ToolbarToggle, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<bool>, IMixedValueSupport
Static Fields
Value | Description |
|---|---|
| ussClassName | USS Class Name used to style the EditorToolbarToggle. |
Constructors
Constructor | Description |
|---|---|
| EditorToolbarToggle() | Constructor. |
| EditorToolbarToggle(System.String) | Constructor. |
| EditorToolbarToggle(System.String,System.String) | Constructor. |
| EditorToolbarToggle(System.String,UnityEngine.Texture2D,UnityEngine.Texture2D) | Constructor. |
| EditorToolbarToggle(UnityEngine.Texture2D) | Constructor. |
| EditorToolbarToggle(UnityEngine.Texture2D,UnityEngine.Texture2D) | Constructor. |
Properties
Property | Description |
|---|---|
| icon | The icon associated with the toggle. |
| offIcon | The icon associated with the toggle when the value is false. |
| onIcon | The icon associated with the toggle when the value is true. |
| text | The text associated with the toggle. |
| textIcon | The text icon associated with the toggle. |
Methods
Method | Description |
|---|---|
| SetValueWithoutNotify | Allow to set a value without being notified of the change, if any. |