# ChangedPort

> Describes a single port that was added, removed, or modified, paired with the categories of changes that affected it.

## Definition

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

```csharp
public readonly struct ChangedPort
```

## Remarks

When the port was removed from the graph, [ChangedPort.Port](/engine/6000.7/script-reference/unity/graphtoolkit/editor/changedport/port.md) is `null` and only [ChangedPort.ID](/engine/6000.7/script-reference/unity/graphtoolkit/editor/changedport/id.md) identifies it.

For a usage example, see [GraphChanges](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphchanges.md).

## Properties

| Property                                                                                            | Description                                                                                                                                                 |
| --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ChangeKinds](/engine/6000.7/script-reference/unity/graphtoolkit/editor/changedport/changekinds.md) | The categories of changes that affected this port, as a set of [ChangeKind](/engine/6000.7/script-reference/unity/graphtoolkit/editor/changekind.md) flags. |
| [ID](/engine/6000.7/script-reference/unity/graphtoolkit/editor/changedport/id.md)                   | The unique identifier of the port.                                                                                                                          |
| [Port](/engine/6000.7/script-reference/unity/graphtoolkit/editor/changedport/port.md)               | The port that was modified, or `null` if the port was removed.                                                                                              |
