# DisableAutoInclusionOfStatesFromStateMachineAssembly

> Disables the automatic inclusion of states and conditions defined in the same assembly as the state machine.

## Definition

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

```csharp
DisableAutoInclusionOfStatesFromStateMachineAssembly = 2
```

### Remarks

By default, subclasses of [State](/engine/6000.7/script-reference/unity/graphtoolkit/editor/state.md) defined in the same assembly as the state machine are available in the graph item library, and subclasses of [Condition](/engine/6000.7/script-reference/unity/graphtoolkit/editor/condition.md) defined in that assembly are available in the add-condition menu of the transition inspector. Set this flag to disable both; states and conditions must then be registered with [UseWithStateMachineAttribute](/engine/6000.7/script-reference/unity/graphtoolkit/editor/usewithstatemachineattribute.md) to be available.
