# SetGlobalFloat

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

## Definition

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

## SetGlobalFloat(int, float)

Add a "set global shader float property" command.

```csharp
public void SetGlobalFloat(int nameID, float value)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)):&#x20;

### Remarks

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

## SetGlobalFloat(string, float)

Add a "set global shader float property" command.

```csharp
public void SetGlobalFloat(string name, float value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)):&#x20;

### Remarks

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