# SetVector

> Sets the value of a vector parameter.

## Definition

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

## SetVector(string, Vector3)

Sets the value of a vector parameter.

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

```csharp
public void SetVector(string name, Vector3 value)
```

### Parameters

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

## SetVector(int, Vector3)

Sets the value of a vector parameter.

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

```csharp
public void SetVector(int id, Vector3 value)
```

### Parameters

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