# SetBool(string, bool)

> Store a Boolean value.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static void SetBool(string key, bool value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;
