# GetHashCode()

> Returns a hash code for this EntityId.

## Definition

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

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

### Returns

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

### Remarks

The hash code is computed from the internal representation of the `EntityId` and does not reflect creation order or any other meaningful property. Do not use the hash code to infer ordering or relationships between `EntityId` values.
