# operator ==(Hash128, Hash128)

> Compares two hashes for equality.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public static bool operator ==(Hash128 obj1, Hash128 obj2)
```

### Parameters

**** (\[Hash128]\(/engine/7000.0/script-reference/unity/entities/hash128)): The first hash to compare.**** (\[Hash128]\(/engine/7000.0/script-reference/unity/entities/hash128)): The second hash to compare.

### Returns

| Type                                                          | Description                       |
| ------------------------------------------------------------- | --------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Whether the two hashes are equal. |
