# SetGlobalVectorArray

> Sets a global vector array property for all shaders.

## Definition

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

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

Sets a global vector array property for all shaders.

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

### Parameters

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

### Remarks

Global properties are used if a shader needs them but the material does not have them defined (for example, if the shader does not expose them in `Properties` block).

Additional Resources: [Shader.SetGlobalVector](/engine/6000.5/script-reference/unityengine/shader/setglobalvector.md).

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

Sets a global vector array property for all shaders.

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

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The name ID of the property retrieved by [Shader.PropertyToID](/engine/6000.5/script-reference/unityengine/shader/propertytoid.md).**** (\[List\<Vector4>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)):&#x20;

### Remarks

Global properties are used if a shader needs them but the material does not have them defined (for example, if the shader does not expose them in `Properties` block).

Additional Resources: [Shader.SetGlobalVector](/engine/6000.5/script-reference/unityengine/shader/setglobalvector.md).

## SetGlobalVectorArray(string, Vector4\[])

Sets a global vector array property for all shaders.

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

### Parameters

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

### Remarks

Global properties are used if a shader needs them but the material does not have them defined (for example, if the shader does not expose them in `Properties` block).

Additional Resources: [Shader.SetGlobalVector](/engine/6000.5/script-reference/unityengine/shader/setglobalvector.md).

## SetGlobalVectorArray(int, Vector4\[])

Sets a global vector array property for all shaders.

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

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The name ID of the property retrieved by [Shader.PropertyToID](/engine/6000.5/script-reference/unityengine/shader/propertytoid.md).**** (\[Vector4\[]]\(/engine/6000.5/script-reference/unityengine/vector4)):&#x20;

### Remarks

Global properties are used if a shader needs them but the material does not have them defined (for example, if the shader does not expose them in `Properties` block).

Additional Resources: [Shader.SetGlobalVector](/engine/6000.5/script-reference/unityengine/shader/setglobalvector.md).
