# ConditionMenuAttribute(Type)

> Initializes a new instance of the ConditionMenuAttribute class.

## Definition

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

```csharp
public ConditionMenuAttribute(Type stateMachineType)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): The [StateMachine](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachine.md) subclass the handler is restricted to.
