# Create<TEdge>(Orientation, Direction, Capacity, Type)

> Factory method for creating a port.

## Definition

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

## Create\<T>(Orientation, Direction, Capacity, Type)

```csharp
public static Port Create<TEdge>(Orientation orientation, Direction direction, Port.Capacity capacity, Type type) where TEdge : Edge, new()
```

### Parameters

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

### Returns

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