# GetOutputPorts()

> Retrieves all output ports on the node in the order they are displayed.

## Definition

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

```csharp
public IEnumerable<IPort> GetOutputPorts()
```

### Returns

| Type                                                                                                   | Description                       |
| ------------------------------------------------------------------------------------------------------ | --------------------------------- |
| [IEnumerable\<IPort>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) | An `IEnumerable` of output ports. |
