# UseWithStateMachineAttribute(params Type[])

> Initializes a new instance of the UseWithStateMachineAttribute class with the specified supported state machine types.

## Definition

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

## UseWithStateMachineAttribute(Type\[])

```csharp
public UseWithStateMachineAttribute(params Type[] stateMachineTypes)
```

### Parameters

**** (\[Type\[]]\(https\://learn.microsoft.com/dotnet/api/system.type)): An array of state machine types that support the decorated element type.
