# InstantiatePort(Orientation, Direction, Capacity, Type)

> Create a new port specific to this node.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Experimental.GraphView](/engine/6000.5/script-reference/unityeditor/experimental/graphview.md)
* **Assembly:** UnityEditor

```csharp
public virtual Port InstantiatePort(Orientation orientation, Direction direction, Port.Capacity capacity, Type type)
```

### Parameters

**** (\[Orientation]\(/engine/6000.5/script-reference/unityeditor/experimental/graphview/orientation)): Port's orientation.**** (\[Direction]\(/engine/6000.5/script-reference/unityeditor/experimental/graphview/direction)): Port's direction.**** (\[Capacity]\(/engine/6000.5/script-reference/unityeditor/experimental/graphview/port/capacity)): **** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): Port's type.

### Returns

| Type                                                                               | Description   |
| ---------------------------------------------------------------------------------- | ------------- |
| [Port](/engine/6000.5/script-reference/unityeditor/experimental/graphview/port.md) | The new port. |
