# TransitionAttribute

> Initializes a new instance of the TransitionAttribute class.

## Definition

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

## TransitionAttribute(string)

Initializes a new instance of the [TransitionAttribute](/engine/6000.7/script-reference/unity/graphtoolkit/editor/transitionattribute.md) class.

```csharp
public TransitionAttribute(string categoryPath)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The category path used to place the transition in the `Create Self Transition` menu.

## TransitionAttribute(string, string)

Initializes a new instance of the [TransitionAttribute](/engine/6000.7/script-reference/unity/graphtoolkit/editor/transitionattribute.md) class.

```csharp
public TransitionAttribute(string categoryPath, string iconPath)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The category path used to place the transition in the `Create Self Transition` menu.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The file path to the transition's icon.

## TransitionAttribute(string, string, string)

Initializes a new instance of the [TransitionAttribute](/engine/6000.7/script-reference/unity/graphtoolkit/editor/transitionattribute.md) class.

```csharp
public TransitionAttribute(string categoryPath, string iconPath, string title)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The category path used to place the transition in the `Create Self Transition` menu.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The file path to the transition's icon.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The title displayed for the transition type.
