# ChangedVariable

> Describes a single variable that was added, 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 ChangedVariable
```

## Remarks

A removed [IVariable](/engine/6000.7/script-reference/unity/graphtoolkit/editor/ivariable.md) does not have a matching `ChangedVariable`.

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

## Properties

| Property                                                                                                | Description                                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ChangeKinds](/engine/6000.7/script-reference/unity/graphtoolkit/editor/changedvariable/changekinds.md) | The categories of changes that affected this variable, 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/changedvariable/id.md)                   | The unique identifier of the variable.                                                                                                                          |
| [Variable](/engine/6000.7/script-reference/unity/graphtoolkit/editor/changedvariable/variable.md)       | The variable that was modified.                                                                                                                                 |
