# GetInt

> Get a named exposed integer.

## Definition

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

## GetInt(int)

Get a named exposed integer.

```csharp
public int GetInt(int nameID)
```

### 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.

### Returns

| Type                                                       | Description                                                                                                                                                          |
| ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The value for the integer you specify. Returns `0` if [VisualEffect.HasInt](/engine/6000.6/script-reference/unityengine/vfx/visualeffect/hasint.md) returns `false`. |

## GetInt(string)

Get a named exposed integer.

```csharp
public int GetInt(string name)
```

### Parameters

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

### Returns

| Type                                                       | Description                                                                                                                                                          |
| ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The value for the integer you specify. Returns `0` if [VisualEffect.HasInt](/engine/6000.6/script-reference/unityengine/vfx/visualeffect/hasint.md) returns `false`. |
