# GetDiscreteIntValue(GameObject, EditorCurveBinding, out int)

> Retrieves the discrete integer value that the binding points to.

## Definition

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

## GetDiscreteIntValue(GameObject, EditorCurveBinding, int)

```csharp
public static bool GetDiscreteIntValue(GameObject root, EditorCurveBinding binding, out int data)
```

### Parameters

**** (\[GameObject]\(/engine/6000.6/script-reference/unityengine/gameobject)): The root GameObject of the animated hierarchy.**** (\[EditorCurveBinding]\(/engine/6000.6/script-reference/unityeditor/editorcurvebinding)): The binding that defines the path and the properties of the value.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The resulting integer 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.
