# GetOutputPort(int)

> Retrieves an output port using its index in the displayed order.

## Definition

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

```csharp
public IPort GetOutputPort(int index)
```

### Parameters

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

### Returns

| Type                                                                        | Description                             |
| --------------------------------------------------------------------------- | --------------------------------------- |
| [IPort](/engine/6000.7/script-reference/unity/graphtoolkit/editor/iport.md) | The output port at the specified index. |

### Remarks

The index is zero-based. The list of output ports is ordered according to their display order in the node.
