# GetBehaviours<T>()

> Returns all StateMachineBehaviour that match type T or are derived from T.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Animations](/engine/6000.6/script-reference/unityeditor/animations.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public T[] GetBehaviours<T>() where T : StateMachineBehaviour
```

### Returns

| Type              | Description |
| ----------------- | ----------- |
| [\<T>\[\]](./.md) |             |
