# GetHashCode()

> Returns a hash code for the current TransitionReference.

## Definition

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

```csharp
public override int GetHashCode()
```

### Returns

| Type                                                       | Description                                                                                                                                                                                                                                                                                                                                                |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | A hash code derived from the [TransitionReference.TransitionID](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/transitionreference/transitionid.md) and [TransitionReference.Context](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphvisualization/transitionreference/context.md) of the current reference. |
