EditorToolbarElementAttribute
The EditorToolbarElement attribute allows you to make available a specific VisualElement for use in an Editor Toolbar.
Read time 3 minutesLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Toolbars
- Assembly: UnityEditor.CoreModule
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]public sealed class EditorToolbarElementAttribute : Attribute
Remarks
Additional Resources: EditorToolbarButton, EditorToolbarDropdown, EditorToolbarToggle and EditorToolbarDropdownToggle.
Constructors
Constructor | Description |
|---|---|
| EditorToolbarElementAttribute(System.String,System.Type[]) | The EditorToolbarElement attribute allows you to make available a specific VisualElement for use in an Editor Toolbar. |
Properties
Property | Description |
|---|---|
| id | Element's ID. |
| targetWindows | Targeted contexts. |