---
title: Equals
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/equals
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/stringhash/equals.md
last_updated: 2026-11-30
generated_at: 2026-11-30T20:52:34.490Z
locale: en-us
---

# Equals

> Determines whether the specified StringHash is equal to the current StringHash.

## Definition

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

## Equals(StringHash)

Determines whether the specified [StringHash](/engine/7000.0/script-reference/unity/animations/stringhash.md) is equal to the current [StringHash](/engine/7000.0/script-reference/unity/animations/stringhash.md).

```csharp
public bool Equals(StringHash other)
```

### Parameters

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

### Returns

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

## Equals(Object)

Determines whether an object is a [StringHash](/engine/7000.0/script-reference/unity/animations/stringhash.md) that equals the current [StringHash](/engine/7000.0/script-reference/unity/animations/stringhash.md).

```csharp
[ExcludeFromBurstCompatTesting("Takes managed object")]
public override bool Equals(object other)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The object to compare with this hash.

### Returns

| Type                                                          | Description                                                                                                                                                                                                                                                               |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if `other` is a [StringHash](/engine/7000.0/script-reference/unity/animations/stringhash.md) with the same [StringHash.Id](/engine/7000.0/script-reference/unity/animations/stringhash/id.md). Otherwise, `false`, including when `other` is another type or null. |
