# GetEnumerator()

> Returns an enumerator for iterating over the characters of this string.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

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

### Returns

| Type                                                                                               | Description                                                                  |
| -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| [Enumerator](/engine/6000.7/script-reference/unity/collections/fixedstring4096bytes/enumerator.md) | An enumerator for iterating over the characters of the FixedString4096Bytes. |
