# SetQuaternion

> Sets the value of a quaternion parameter.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AnimationModule

## SetQuaternion(string, Quaternion)

Sets the value of a quaternion parameter.

> **Warning:**
>
> **Deprecated.** SetQuaternion is deprecated.

```csharp
public void SetQuaternion(string name, Quaternion value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the parameter.**** (\[Quaternion]\(/engine/6000.6/script-reference/unityengine/quaternion)): The new value for the parameter.

## SetQuaternion(int, Quaternion)

Sets the value of a quaternion parameter.

> **Warning:**
>
> **Deprecated.** SetQuaternion is deprecated.

```csharp
public void SetQuaternion(int id, Quaternion value)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Of the parameter. The id is generated using Animator::StringToHash.**** (\[Quaternion]\(/engine/6000.6/script-reference/unityengine/quaternion)): The new value for the parameter.
