# SetVector2

> Sets the value of a named Vector2 property.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.VFX](/engine/6000.5/script-reference/unityengine/vfx.md)
* **Assembly:** UnityEngine.VFXModule

## SetVector2(int, Vector2)

Sets the value of a named Vector2 property.

```csharp
public void SetVector2(int nameID, Vector2 v)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The ID of the property. This is the same ID that [Shader.PropertyToID](/engine/6000.5/script-reference/unityengine/shader/propertytoid.md) returns.**** (\[Vector2]\(/engine/6000.5/script-reference/unityengine/vector2)): The new Vector2 value.

### Remarks

Automatically changes overridden state for this property to true.

## SetVector2(string, Vector2)

Sets the value of a named Vector2 property.

```csharp
public void SetVector2(string name, Vector2 v)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the property.**** (\[Vector2]\(/engine/6000.5/script-reference/unityengine/vector2)): The new Vector2 value.

### Remarks

Automatically changes overridden state for this property to true.
