# BindComponent(Component)

> Adds bindings for all the properties of component.

## Definition

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

```csharp
public void BindComponent(Component component)
```

### Parameters

**** (\[Component]\(/engine/6000.0/script-reference/unityengine/component)): The component to bind.

### Examples

```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Animations;

public class BindComponentScript : MonoBehaviour
{
    void Start()
    {
        var recorder = new GameObjectRecorder(gameObject);

        // Add bindings for all the properties of the Transform and BoxCollider components.
        recorder.BindComponent(transform);
        recorder.BindComponent(GetComponent<BoxCollider>());
    }
}
```
