# AnimatableFloatChannels.Enumerator

> Enumerates the name and value of each channel in an AnimatableFloatChannels set.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule
* **Implements:** [IEnumerator\<KeyValuePair\<string, float>>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1), [IEnumerator](https://learn.microsoft.com/dotnet/api/system.collections.ienumerator), [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public struct AnimatableFloatChannels.Enumerator : IEnumerator<KeyValuePair<string, float>>, IEnumerator, IDisposable
```

## Remarks

[AnimatableFloatChannels.GetEnumerator](/engine/7000.0/script-reference/unityengine/animatablefloatchannels/getenumerator.md) returns this struct, so iterating a set with `foreach` doesn't allocate memory.

## Properties

| Property                                                                                             | Description                                                                  |
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| [Current](/engine/7000.0/script-reference/unityengine/animatablefloatchannels/enumerator/current.md) | The name and value of the channel at the current position of the enumerator. |

## Methods

| Method                                                                                                 | Description                               |
| ------------------------------------------------------------------------------------------------------ | ----------------------------------------- |
| [MoveNext](/engine/7000.0/script-reference/unityengine/animatablefloatchannels/enumerator/movenext.md) | Moves the enumerator to the next channel. |
