---
title: GetHashCode()
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/unityengine/experimental/ai/polygonid/gethashcode
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/experimental/ai/polygonid/gethashcode.md
last_updated: 2026-10-07
generated_at: 2026-11-11T15:34:20.410Z
locale: en-us
---

# GetHashCode()

> Returns the hash code for use in collections.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Experimental.AI](/engine/7000.0/script-reference/unityengine/experimental/ai.md)
* **Assembly:** UnityEngine.AIModule

> **Warning:**
>
> **Deprecated.** The experimental PolygonId struct has been deprecated. Use NavNode instead.

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

### Returns

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