---
title: Hash(quaternion4)
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/unity/animations/quaternion4extensions/hash
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/quaternion4extensions/hash.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:33:18.291Z
locale: en-us
---

# Hash(quaternion4)

> Computes a single hash code that combines all four quaternions of the quaternion4.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

```csharp
public static uint Hash(this quaternion4 q)
```

### Parameters

**** (\[quaternion4]\(/engine/7000.0/script-reference/unity/animations/quaternion4)): The [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) to hash.

### Returns

| Type                                                         | Description                            |
| ------------------------------------------------------------ | -------------------------------------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | A `uint` hash code for all four lanes. |
