# GetInt(AnimationStream)

> Gets the integer property value from a stream.

## Definition

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

```csharp
public int GetInt(AnimationStream stream)
```

### Parameters

**** (\[AnimationStream]\(/engine/6000.5/script-reference/unityengine/animations/animationstream)): The [AnimationStream](/engine/6000.5/script-reference/unityengine/animations/animationstream.md) that holds the animated values.

### Returns

| Type                                                       | Description                 |
| ---------------------------------------------------------- | --------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The integer property value. |

### Remarks

If the property is not an integer, the method will throw an `InvalidOperationException`.
