# GraphToolbarElementAttribute(string, Type, int)

> Creates a new GraphToolbarElement attribute.

## Definition

* **Type:** Constructor
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.7/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

```csharp
public GraphToolbarElementAttribute(string id, Type graphType, int order = 1000)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The unique identifier for this toolbar element.**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): The graph type this element should appear for. Must inherit from [Graph](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graph.md) or [StateMachine](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachine.md).**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The display order (default 1000). Lower values appear first.
