# OnPortChanged(bool)

> Called when a port on the edge is changed.

## Definition

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

```csharp
public virtual void OnPortChanged(bool isInput)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): True if the input port was changed. False if the output port was changed.
