# ITransitionRule

> Interface for a single rule stacked on a ITransition.

## Definition

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

```csharp
public interface ITransitionRule
```

## Remarks

A transition can hold several rules. Each rule owns a root [IGroupCondition](/engine/6000.7/script-reference/unity/graphtoolkit/editor/igroupcondition.md) that expresses the conditions under which the transition is taken. Walk the condition hierarchy from [ITransitionRule.RootCondition](/engine/6000.7/script-reference/unity/graphtoolkit/editor/itransitionrule/rootcondition.md) using [IGroupCondition.Get](/engine/6000.7/script-reference/unity/graphtoolkit/editor/igroupcondition/get.md). This interface is implemented by Unity and is not intended to be implemented by user code.

## Properties

| Property                                                                                                    | Description                                                                                   |
| ----------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [Enabled](/engine/6000.7/script-reference/unity/graphtoolkit/editor/itransitionrule/enabled.md)             | Whether the rule is enabled. A disabled rule is never evaluated when the transition is taken. |
| [Icon](/engine/6000.7/script-reference/unity/graphtoolkit/editor/itransitionrule/icon.md)                   | The icon displayed for this rule in the transition inspector, or `null` if none is set.       |
| [ID](/engine/6000.7/script-reference/unity/graphtoolkit/editor/itransitionrule/id.md)                       | The globally unique identifier for this rule.                                                 |
| [RootCondition](/engine/6000.7/script-reference/unity/graphtoolkit/editor/itransitionrule/rootcondition.md) | The root condition group for this rule.                                                       |
| [Title](/engine/6000.7/script-reference/unity/graphtoolkit/editor/itransitionrule/title.md)                 | The title of the rule.                                                                        |
| [Transition](/engine/6000.7/script-reference/unity/graphtoolkit/editor/itransitionrule/transition.md)       | The transition this rule is stacked on, or `null` when the rule is not part of one.           |
