# SetBool

> Use this method to set the value of a bool with the name you pass in.

## Definition

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

## SetBool(int, bool)

Use this method to set the value of a bool with the name you pass in.

```csharp
public void SetBool(int nameID, bool b)
```

### 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.5/script-reference/unityengine/shader/propertytoid.md) returns.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): The new bool value.

## SetBool(string, bool)

Use this method to set the value of a bool with the name you pass in.

```csharp
public void SetBool(string name, bool b)
```

### Parameters

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