# CreateGenericBinding(Object, string, GameObject, bool, out GenericBinding)

> Retrieves the GenericBinding that represents a specific property associated with a GameObject or one of its components.

## Definition

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

## CreateGenericBinding(Object, string, GameObject, bool, GenericBinding)

```csharp
public static bool CreateGenericBinding(Object targetObject, string property, GameObject root, bool isObjectReference, out GenericBinding genericBinding)
```

### Parameters

**** (\[Object]\(/engine/6000.6/script-reference/unityengine/object)): The target [GameObject](/engine/6000.6/script-reference/unityengine/gameobject.md) to extract the bindings from.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the property.**** (\[GameObject]\(/engine/6000.6/script-reference/unityengine/gameobject)): A [GameObject](/engine/6000.6/script-reference/unityengine/gameobject.md) ancestor of targetObject. Use the ancestor to locate the targetObject within a transform hierarchy.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Specifies whether the property is an object reference. If you do not identify the property correctly, the method fails. Set this parameter to True if the property references an object. Set to False if the property is a float or an integer.**** (\[GenericBinding]\(/engine/6000.6/script-reference/unityengine/animations/genericbinding)): Returns the [GenericBinding](/engine/6000.6/script-reference/unityengine/animations/genericbinding.md) representing the property on the GameObject to animate.

### Returns

| Type                                                          | Description                                                   |
| ------------------------------------------------------------- | ------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns True if the operation is successful, otherwise False. |
