# SetInts

> Sets the values for a int array uniform.

## Definition

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

## SetInts(string, int\[])

Sets the values for a int array uniform.

```csharp
public void SetInts(string name, params int[] values)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the property being set.**** (\[int\[]]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The int array to set.

## SetInts(int, int\[])

Sets the values for a int array uniform.

```csharp
public void SetInts(int nameID, params int[] values)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The ID of the property as given by Shader.PropertyToID.**** (\[int\[]]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The int array to set.
