# SetGlobalVector

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

## Definition

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

## SetGlobalVector(int, Vector4)

Add a "set global shader vector property" command.

```csharp
public void SetGlobalVector(int nameID, Vector4 value)
```

### Parameters

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

### Remarks

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

## SetGlobalVector(string, Vector4)

Add a "set global shader vector property" command.

```csharp
public void SetGlobalVector(string name, Vector4 value)
```

### Parameters

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

### Remarks

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