# GetOutputPortByName(string)

> Retrieves an output port using its name.

## Definition

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

```csharp
public IPort GetOutputPortByName(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The unique name of the output port within this node.

### Returns

| Type                                                                        | Description                                                            |
| --------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [IPort](/engine/6000.7/script-reference/unity/graphtoolkit/editor/iport.md) | The output port with the specified name, or null if no match is found. |

### Remarks

The output port's name is unique within the node's output ports.
