# GetInputPort(int)

> Retrieves an input port using its index.

## Definition

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

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

### Parameters

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

### Returns

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

### Remarks

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