# GetRules()

> Retrieves the rules stacked on this transition, in the order they appear.

## Definition

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

```csharp
IEnumerable<ITransitionRule> GetRules()
```

### Returns

| Type                                                                                                             | Description                                                     |
| ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| [IEnumerable\<ITransitionRule>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) | The rules stacked on this transition, in the order they appear. |

### Remarks

A single transition can hold several [ITransitionRule](/engine/6000.7/script-reference/unity/graphtoolkit/editor/itransitionrule.md)s. Each rule has its own set of conditions; the transition is taken when the conditions of one of its enabled rules are met.
