# GetInputPorts()

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

## Definition

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

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

### Returns

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