# GetFloat(AnimationStream)

> Gets the float property value from a stream.

## Definition

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

```csharp
public float GetFloat(AnimationStream stream)
```

### Parameters

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

### Returns

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

### Remarks

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