# GetBool

> Gets the value of a named bool property.

## Definition

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

## GetBool(int)

Gets the value of a named bool property.

```csharp
public bool GetBool(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                                                                                                                                                             |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | The value for the bool you specify. Returns `false` if [VisualEffect.HasBool](/engine/6000.6/script-reference/unityengine/vfx/visualeffect/hasbool.md) returns `false`. |

## GetBool(string)

Gets the value of a named bool property.

```csharp
public bool GetBool(string name)
```

### Parameters

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

### Returns

| Type                                                          | Description                                                                                                                                                             |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | The value for the bool you specify. Returns `false` if [VisualEffect.HasBool](/engine/6000.6/script-reference/unityengine/vfx/visualeffect/hasbool.md) returns `false`. |
