# SetVector4

> Sets the value of a named Vector4 or Color property.

## Definition

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

## SetVector4(int, Vector4)

Sets the value of a named Vector4 or Color property.

```csharp
public void SetVector4(int nameID, Vector4 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.6/script-reference/unityengine/shader/propertytoid.md) returns.**** (\[Vector4]\(/engine/6000.6/script-reference/unityengine/vector4)): The new Vector4 value.

### Remarks

Automatically changes overridden state for this property to true.

## SetVector4(string, Vector4)

Sets the value of a named Vector4 or Color property.

```csharp
public void SetVector4(string name, Vector4 v)
```

### Parameters

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

### Remarks

Automatically changes overridden state for this property to true.
