# Node(InfoAttribute, T)

> Constructor of the node element with the given attribute.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEditor.Categorization](/engine/6000.5/script-reference/unityeditor/categorization.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public Node(InfoAttribute info, T data = default)
```

### Parameters

**** (\[InfoAttribute]\(/engine/6000.5/script-reference/unityengine/categorization/infoattribute)): Either [ElementInfoAttribute](/engine/6000.5/script-reference/unityengine/categorization/elementinfoattribute.md) for leaf nodes or [CategoryInfoAttribute](/engine/6000.5/script-reference/unityengine/categorization/categoryinfoattribute.md) for category nodes.**** (T): The data holding the element. Category nodes have null data as they only have chldren.
