# SetGlobalVectorArray

> Add a "set global shader vector array property" command.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.0/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

## SetGlobalVectorArray(int, Vector4\[])

Add a "set global shader vector array property" command.

```csharp
public void SetGlobalVectorArray(int nameID, Vector4[] values)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[Vector4\[]]\(/engine/6000.0/script-reference/unityengine/vector4)):&#x20;

### Remarks

When the command buffer will be executed, a global shader vector array property will be set at this point. The effect is as if [Shader.SetGlobalVectorArray](/engine/6000.0/script-reference/unityengine/shader/setglobalvectorarray.md) was called.

## SetGlobalVectorArray(string, List\<Vector4>)

Add a "set global shader vector array property" command.

```csharp
public void SetGlobalVectorArray(string propertyName, List<Vector4> values)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[List\<Vector4>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)):&#x20;

### Remarks

When the command buffer will be executed, a global shader vector array property will be set at this point. The effect is as if [Shader.SetGlobalVectorArray](/engine/6000.0/script-reference/unityengine/shader/setglobalvectorarray.md) was called.

## SetGlobalVectorArray(int, List\<Vector4>)

Add a "set global shader vector array property" command.

```csharp
public void SetGlobalVectorArray(int nameID, List<Vector4> values)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[List\<Vector4>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)):&#x20;

### Remarks

When the command buffer will be executed, a global shader vector array property will be set at this point. The effect is as if [Shader.SetGlobalVectorArray](/engine/6000.0/script-reference/unityengine/shader/setglobalvectorarray.md) was called.

## SetGlobalVectorArray(string, Vector4\[])

Add a "set global shader vector array property" command.

```csharp
public void SetGlobalVectorArray(string propertyName, Vector4[] values)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[Vector4\[]]\(/engine/6000.0/script-reference/unityengine/vector4)):&#x20;

### Remarks

When the command buffer will be executed, a global shader vector array property will be set at this point. The effect is as if [Shader.SetGlobalVectorArray](/engine/6000.0/script-reference/unityengine/shader/setglobalvectorarray.md) was called.
