---
description: Type description and basic instructions.
---

# NodeContentAttribute

### Description

To create custom nodes in editor you should add Node Content attribute to your custom node class.

This attribute has some parameters that you should specify.

#### Parameters

| Name     | Description                                                                                  |
| -------- | -------------------------------------------------------------------------------------------- |
| name     | Default node name that is displayed after you create this node in the editor                 |
| path     | Path that you should follow to find this node when you open "Create Node" menu in the editor |
| IconPath |  Path that you should follow to find your node icon.                                         |

### Example

<pre class="language-csharp" data-full-width="false"><code class="lang-csharp">[NodeContent(name:"Example", path:"Tasks/Example/Example", IconPath = "Images/Icons/Node/Example.png")]
public class ExampleTaskNode : TaskNode
{
    ...
<strong>}
</strong></code></pre>

{% hint style="info" %}
IconPath is relative to "Assets/RenownedGames/ai-tree/Core/Editor/EditorResources"&#x20;
{% endhint %}
