# NodeAttribute

> Initializes a new instance of the NodeAttribute class.

## Definition

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

## NodeAttribute(string)

Initializes a new instance of the [NodeAttribute](/engine/6000.6/script-reference/unity/graphtoolkit/editor/nodeattribute.md) class.

```csharp
public NodeAttribute(string categoryPath)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The category path of the node in the graph item library.

## NodeAttribute(string, string)

Initializes a new instance of the [NodeAttribute](/engine/6000.6/script-reference/unity/graphtoolkit/editor/nodeattribute.md) class.

```csharp
public NodeAttribute(string categoryPath, string iconPath)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The category path of the node in the graph item library.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The file path to the node's icon.

## NodeAttribute(string, string, string)

Initializes a new instance of the [NodeAttribute](/engine/6000.6/script-reference/unity/graphtoolkit/editor/nodeattribute.md) class.

```csharp
public NodeAttribute(string categoryPath, string iconPath, string title)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The category path of the node in the graph item library.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The file path to the node's icon.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The title of the node in the graph item library. It is also used as the title of this node when it is instantiated in a graph.

## NodeAttribute(string, string, string, string)

Initializes a new instance of the [NodeAttribute](/engine/6000.6/script-reference/unity/graphtoolkit/editor/nodeattribute.md) class.

```csharp
public NodeAttribute(string categoryPath, string iconPath, string title, string stylesheet)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The category path of the node in the graph item library.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The file path to the node's icon.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The title of the node in the graph item library. It is also used as the title of this node when it is instantiated in a graph.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Path to a stylesheet (.uss) used to customize the node's VisualElement appearance.
