# SetVector3

> Sets the value of a named Vector3 property.

## Definition

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

## SetVector3(int, Vector3)

Sets the value of a named Vector3 property.

```csharp
public void SetVector3(int nameID, Vector3 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.7/script-reference/unityengine/shader/propertytoid.md) returns.**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): The new Vector3 value.

### Remarks

Automatically changes overridden state for this property to true.

## SetVector3(string, Vector3)

Sets the value of a named Vector3 property.

```csharp
public void SetVector3(string name, Vector3 v)
```

### Parameters

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

### Remarks

Automatically changes overridden state for this property to true.
