GraphToolbarElementAttribute
Attribute used to bind a toolbar element to a specific Graph type.
Read time 3 minutesLast updated 6 days ago
Definition
- Type: Class
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]public sealed class GraphToolbarElementAttribute : Attribute
Remarks
Apply this attribute to toolbar element classes to make them appear in the toolbar when editing the specified graph type. The element will also appear for types derived from the specified graph type.
Constructors
Constructor | Description |
|---|---|
| GraphToolbarElementAttribute(System.String,System.Type,System.Int32) | Creates a new GraphToolbarElement attribute. |
Properties
Property | Description |
|---|---|
| GraphType | The graph type this toolbar element is associated with. |
| Id | The unique identifier for this toolbar element. |
| Order | The display order of this toolbar element. Lower values appear first. |