# 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 FixedString512Bytes.Enumerator GetEnumerator()
```

### Returns

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