# GetEnumerator()

> Gets an enumerator that iterates over the name and value of each channel, in the order of the set.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public AnimatableFloatChannels.Enumerator GetEnumerator()
```

### Returns

| Type                                                                                            | Description                                    |
| ----------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [Enumerator](/engine/7000.0/script-reference/unityengine/animatablefloatchannels/enumerator.md) | An enumerator of channel name and value pairs. |

### Remarks

Use `foreach` or LINQ to read all channels without looking each one up by name. Iterating with `foreach` doesn't allocate memory.
