# BindAll(GameObject, bool)

> Adds bindings for all of target 's properties, and also for all the target 's children if recursive is true.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Animations](/engine/6000.3/script-reference/unityeditor/animations.md)
* **Assembly:** UnityEditor

```csharp
public void BindAll(GameObject target, bool recursive)
```

### Parameters

**** (\[GameObject]\(/engine/6000.3/script-reference/unityengine/gameobject)): [GameObjectRecorder.root](/engine/6000.3/script-reference/unityeditor/animations/gameobjectrecorder/root.md) or any of its children.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Binds also all the **target**'s children properties when set to `true`.
