# DefineNode()

> Defines the structure of the node by building its ports and options.

## Definition

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

```csharp
public void DefineNode()
```

### Remarks

This method calls both [Node.OnDefineOptions](/engine/6000.7/script-reference/unity/graphtoolkit/editor/node/ondefineoptions.md) and [Node.OnDefinePorts](/engine/6000.7/script-reference/unity/graphtoolkit/editor/node/ondefineports.md) to allow custom definition of the node.
