# GetHashCode()

> Returns the hash code for this window.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Windowing](/engine/6000.7/script-reference/unityengine/windowing.md)
* **Assembly:** UnityEngine.WindowingModule

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

### Returns

| Type                                                       | Description                    |
| ---------------------------------------------------------- | ------------------------------ |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The hash code for this window. |

### Examples

```csharp
using UnityEngine;
using UnityEngine.Windowing;

public class WindowHashExample : MonoBehaviour
{
    void Start()
    {
        var window = GameWindow.Main;
        int hash = window.GetHashCode();
        Debug.Log($"Window hash: {hash}");
    }
}
```
