# SetInt

> Use this method to set the value of an integer with the name you pass in.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.VFX](/engine/6000.6/script-reference/unityengine/vfx.md)
* **Assembly:** UnityEngine.VFXModule

## SetInt(int, int)

Use this method to set the value of an integer with the name you pass in.

```csharp
public void SetInt(int nameID, int i)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The ID of the property. This is the same ID that [Shader.PropertyToID](/engine/6000.6/script-reference/unityengine/shader/propertytoid.md) returns.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The new integer value.

## SetInt(string, int)

Use this method to set the value of an integer with the name you pass in.

```csharp
public void SetInt(string name, int i)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the property.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The new integer value.
