# GetAnimatableBindings(GameObject, GameObject)

> Retrieves the animatable bindings for a specific GameObject.

## Definition

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

```csharp
public static GenericBinding[] GetAnimatableBindings(GameObject targetObject, GameObject root)
```

### Parameters

**** (\[GameObject]\(/engine/6000.5/script-reference/unityengine/gameobject)): The target [GameObject](/engine/6000.5/script-reference/unityengine/gameobject.md) to extract the bindings from.**** (\[GameObject]\(/engine/6000.5/script-reference/unityengine/gameobject)): A [GameObject](/engine/6000.5/script-reference/unityengine/gameobject.md) ancestor of targetObject. Use the ancestor to locate the targetObject within a transform hierarchy.

### Returns

| Type                                                                                           | Description                                                                                                                                                                              |
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GenericBinding\[\]](/engine/6000.5/script-reference/unityengine/animations/genericbinding.md) | Returns an array of [GenericBinding](/engine/6000.5/script-reference/unityengine/animations/genericbinding.md). Returns an empty array if the targetObject has no animatable properties. |
