EditorToolbarElementAttribute
The EditorToolbarElement attribute allows you to make available a specific VisualElement for use in an Editor Toolbar.
읽는 시간 3분최근 업데이트: 한 달 전
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. |