# SetGlobalInteger

> Sets a global integer property for all shaders.

## Definition

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

## SetGlobalInteger(string, int)

Sets a global integer property for all shaders.

```csharp
public static void SetGlobalInteger(string name, int value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the property.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

## SetGlobalInteger(int, int)

Sets a global integer property for all shaders.

```csharp
public static void SetGlobalInteger(int nameID, int value)
```

### Parameters

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