---
title: operator ==(StringHash, StringHash)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/stringhash/op-equality
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/stringhash/op-equality.md
last_updated: 2026-11-30
generated_at: 2026-11-30T20:50:25.909Z
locale: en-us
---

# operator ==(StringHash, StringHash)

> Returns true if two hashes are equal.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

```csharp
public static bool operator ==(StringHash lhs, StringHash rhs)
```

### Parameters

**** (\[StringHash]\(/engine/7000.0/script-reference/unity/animations/stringhash)): The first hash to compare.**** (\[StringHash]\(/engine/7000.0/script-reference/unity/animations/stringhash)): The second hash to compare.

### Returns

| Type                                                          | Description                                             |
| ------------------------------------------------------------- | ------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the two values are equal. Otherwise, `false`. |
