# AddBlockNode(BlockNode)

> Adds an existing BlockNode to this context node.

## Definition

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

```csharp
public void AddBlockNode(BlockNode blockNode)
```

### Parameters

**** (\[BlockNode]\(/engine/6000.6/script-reference/unity/graphtoolkit/editor/blocknode)): The [BlockNode](/engine/6000.6/script-reference/unity/graphtoolkit/editor/blocknode.md) to add.

### Remarks

Use this method to add an existing block node to the end of this context node. Consider using [ContextNode.InsertBlockNode](/engine/6000.6/script-reference/unity/graphtoolkit/editor/contextnode/insertblocknode.md) to insert at a specific position, or [ContextNode.CreateBlockNode](/engine/6000.6/script-reference/unity/graphtoolkit/editor/contextnode/createblocknode.md) to create and add a new block node. When the block node already belongs to another context node, it is removed from that context and added to this one. Throws ArgumentException if the block node is not compatible with this context node.
