# GetHashCode()

> Returns the hash of the archetype.

## Definition

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

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

### Returns

| Type                                                       | Description           |
| ---------------------------------------------------------- | --------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | An integer hash code. |

### Remarks

Two EntityArchetype instances referencing the same archetype return the same hash.
