# SetGlobalColor

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

## Definition

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

## SetGlobalColor(int, Color)

Add a "set global shader color property" command.

```csharp
public void SetGlobalColor(int nameID, Color value)
```

### Parameters

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

### Remarks

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

## SetGlobalColor(string, Color)

Add a "set global shader color property" command.

```csharp
public void SetGlobalColor(string name, Color value)
```

### Parameters

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

### Remarks

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