---
title: QuatWeight(quaternion4, float4)
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/quatweight
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/quaternion4extensions/quatweight.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:51:12.911Z
locale: en-us
---

# QuatWeight(quaternion4, float4)

> Weights each rotation of the quaternion4 toward the identity rotation, for additive blending.

## 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 quaternion4 QuatWeight(this quaternion4 q, float4 weight)
```

### Parameters

**** (\[quaternion4]\(/engine/7000.0/script-reference/unity/animations/quaternion4)): The [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) to weight.**** (\[float4]\(/engine/7000.0/script-reference/unity/mathematics/float4)): The weight of each lane, one value in each lane.

### Returns

| Type                                                                           | Description                                                                                                 |
| ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) | The weighted and normalized [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md). |

### Remarks

The method scales the x, y, and z components by the weight, then normalizes the result. It doesn't scale the w component. A weight of 0 gives the identity rotation.
