# Direction

> The direction of the port.

## Definition

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

```csharp
PortDirection Direction { get; }
```

### Remarks

The direction indicates whether the port is an input or output. Use [PortDirection.Input](/engine/6000.7/script-reference/unity/graphtoolkit/editor/portdirection/input.md) or [PortDirection.Output](/engine/6000.7/script-reference/unity/graphtoolkit/editor/portdirection/output.md) to determine behavior.
