---
title: operator *
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/quaternion4/op-multiply
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/quaternion4/op-multiply.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:41:40.832Z
locale: en-us
---

# operator *

> Multiplies every component of a quaternion4 by a scalar.

## Definition

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

## operator \*(quaternion4, float)

Multiplies every component of a quaternion4 by a scalar.

```csharp
public static quaternion4 operator *(quaternion4 lhs, float rhs)
```

### Parameters

**** (\[quaternion4]\(/engine/7000.0/script-reference/unity/animations/quaternion4)): The [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) whose components the operator scales.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The scalar to multiply every component by.

### Returns

| Type                                                                           | Description                                                                                                            |
| ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- |
| [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) | The resulting [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) after the multiplication. |

### Remarks

This operator scales the components. It isn't the quaternion product. To combine rotations, use [Quaternion4Extensions.Mul](/engine/7000.0/script-reference/unity/animations/quaternion4extensions/mul.md).

## operator \*(quaternion4, float4)

Multiplies the components of each quaternion in a quaternion4 by a separate scalar.

```csharp
public static quaternion4 operator *(quaternion4 lhs, float4 rhs)
```

### Parameters

**** (\[quaternion4]\(/engine/7000.0/script-reference/unity/animations/quaternion4)): The [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) whose components the operator scales.**** (\[float4]\(/engine/7000.0/script-reference/unity/mathematics/float4)): The scalars to multiply the quaternions by, one in each lane.

### Returns

| Type                                                                           | Description                                                                                                            |
| ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- |
| [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) | The resulting [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) after the multiplication. |

### Remarks

Lane 0 of `rhs` scales the four components of the first quaternion, lane 1 scales the second quaternion, and so on. This operator scales the components. It isn't the quaternion product. To combine rotations, use [Quaternion4Extensions.Mul](/engine/7000.0/script-reference/unity/animations/quaternion4extensions/mul.md).
