# GetObjectReferenceValue(GameObject, EditorCurveBinding, out Object)

> Retrieves the object value that the binding points to.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

## GetObjectReferenceValue(GameObject, EditorCurveBinding, Object)

```csharp
public static bool GetObjectReferenceValue(GameObject root, EditorCurveBinding binding, out Object data)
```

### Parameters

**** (\[GameObject]\(/engine/6000.7/script-reference/unityengine/gameobject)): The root GameObject of the animated hierarchy.**** (\[EditorCurveBinding]\(/engine/6000.7/script-reference/unityeditor/editorcurvebinding)): The binding that defines the path and the properties of the value.**** (\[Object]\(/engine/6000.7/script-reference/unityengine/object)): The resulting object value, if a value exists.

### Returns

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

### Remarks

Use this method when recording keyframes.
