EditorToolbarButton
A clickable button used with EditorToolbarElementAttribute.
Read time 9 minutesLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Toolbars
- Assembly: UnityEditor
- Inherits from: ToolbarButton
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IVisualElementScheduler, ICustomStyle, IBindable, INotifyValueChanged<string>, ITextEdition, ITextElementExperimentalFeatures, IExperimentalFeatures, ITextSelection
public class EditorToolbarButton : ToolbarButton, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IVisualElementScheduler, ICustomStyle, IBindable, INotifyValueChanged<string>, ITextEdition, ITextElementExperimentalFeatures, IExperimentalFeatures, ITextSelection
Constructors
Constructor | Description |
|---|---|
| EditorToolbarButton() | Constructor. |
| EditorToolbarButton(System.Action) | Constructor. |
| EditorToolbarButton(System.String,System.Action) | Constructor. |
| EditorToolbarButton(System.String,UnityEngine.Texture2D,System.Action) | Constructor. |
| EditorToolbarButton(UnityEngine.Texture2D,System.Action) | Constructor. |
Properties
Property | Description |
|---|---|
| icon | The icon associated with the element. |
| text | The text associated with the element. |