# SetButton(string, bool)

> Sets the button value for this input. Only works for input typed Custom.

## Definition

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

> **Warning:**
>
> **Deprecated.** This type is deprecated and will be removed in a future release.

```csharp
public static void SetButton(string name, bool value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of input to modify.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Value to set.
