# GetVector

> Gets the value of a vector parameter.

## Definition

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

## GetVector(string)

Gets the value of a vector parameter.

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

```csharp
public Vector3 GetVector(string name)
```

### Parameters

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

### Returns

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

## GetVector(int)

Gets the value of a vector parameter.

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

```csharp
public Vector3 GetVector(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 |
| ----------------------------------------------------------------- | ----------- |
| [Vector3](/engine/6000.7/script-reference/unityengine/vector3.md) |             |
