# GetBlock(int)

> Retrieves the BlockNode at the specified index in the context node's block list.

## Definition

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

```csharp
public BlockNode GetBlock(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The zero-based index of the block to retrieve.

### Returns

| Type                                                                                | Description                                                                                                     |
| ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| [BlockNode](/engine/6000.6/script-reference/unity/graphtoolkit/editor/blocknode.md) | The [BlockNode](/engine/6000.6/script-reference/unity/graphtoolkit/editor/blocknode.md) at the specified index. |

### Remarks

The index is zero-based and corresponds to the block’s position within [ContextNode.BlockNodes](/engine/6000.6/script-reference/unity/graphtoolkit/editor/contextnode/blocknodes.md).
