# SetBool(AnimationStream, bool)

> Sets the boolean property value into a stream.

## Definition

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

```csharp
public void SetBool(AnimationStream stream, bool value)
```

### Parameters

**** (\[AnimationStream]\(/engine/6000.5/script-reference/unityengine/animations/animationstream)): The [AnimationStream](/engine/6000.5/script-reference/unityengine/animations/animationstream.md) that holds the animated values.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): The new boolean property value.

### Remarks

If the property is not a boolean, the method will throw an `InvalidOperationException`.
