# GetHashCode()

> Converts this ShaderTagId to a hash code.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.7/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

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

### Returns

| Type                                                       | Description                          |
| ---------------------------------------------------------- | ------------------------------------ |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The hash code of this `ShaderTagId`. |

### Remarks

Allows this struct to be used efficiently in data structures which rely on hashing (`System.Collections.Generic.HashSet`, for example). The hash is based on the string this identifier refers to.
