# ChangedSubgraphState

> Describes a single subgraph 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 ChangedSubgraphState
```

## Remarks

A removed [ISubgraphState](/engine/6000.7/script-reference/unity/graphtoolkit/editor/isubgraphstate.md) does not have a matching `ChangedSubgraphState`.

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/changedsubgraphstate/changekinds.md)     | The categories of changes that affected this subgraph 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/changedsubgraphstate/id.md)                       | The unique identifier of the subgraph state.                                                                                                                          |
| [SubgraphState](/engine/6000.7/script-reference/unity/graphtoolkit/editor/changedsubgraphstate/subgraphstate.md) | The subgraph state that was modified.                                                                                                                                 |
