# GetQuaternion

> Gets the value of a quaternion parameter.

## Definition

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

## GetQuaternion(string)

Gets the value of a quaternion parameter.

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

```csharp
public Quaternion GetQuaternion(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the parameter.

### Returns

| Type                                                                    | Description |
| ----------------------------------------------------------------------- | ----------- |
| [Quaternion](/engine/6000.7/script-reference/unityengine/quaternion.md) |             |

## GetQuaternion(int)

Gets the value of a quaternion parameter.

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

```csharp
public Quaternion GetQuaternion(int id)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The id of the parameter. The id is generated using Animator::StringToHash.

### Returns

| Type                                                                    | Description |
| ----------------------------------------------------------------------- | ----------- |
| [Quaternion](/engine/6000.7/script-reference/unityengine/quaternion.md) |             |
