# GetVector4

> Gets 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

## GetVector4(int)

Gets the value of a named Vector4 or Color property.

```csharp
public Vector4 GetVector4(int nameID)
```

### 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.

### Returns

| Type                                                              | Description                                                                                                                                                                             |
| ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Vector4](/engine/6000.6/script-reference/unityengine/vector4.md) | The value for the Vector4 you specify. Returns /Vector4.zero/ if [VisualEffect.HasVector4](/engine/6000.6/script-reference/unityengine/vfx/visualeffect/hasvector4.md) returns `false`. |

## GetVector4(string)

Gets the value of a named Vector4 or Color property.

```csharp
public Vector4 GetVector4(string name)
```

### Parameters

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

### Returns

| Type                                                              | Description                                                                                                                                                                             |
| ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Vector4](/engine/6000.6/script-reference/unityengine/vector4.md) | The value for the Vector4 you specify. Returns /Vector4.zero/ if [VisualEffect.HasVector4](/engine/6000.6/script-reference/unityengine/vfx/visualeffect/hasvector4.md) returns `false`. |
