# ChangedState

> Describes a single state 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 ChangedState
```

## Remarks

A removed [IState](/engine/6000.7/script-reference/unity/graphtoolkit/editor/istate.md) does not have a matching `ChangedState`.

A subgraph state is reported through [ChangedSubgraphState](/engine/6000.7/script-reference/unity/graphtoolkit/editor/changedsubgraphstate.md) instead, in [StateMachineChanges.ChangedSubgraphStates](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachinechanges/changedsubgraphstates.md).

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

## Properties

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