# GetEnumerator()

> Returns an enumerator that iterates through the draws.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public DrawDataEnumerator GetEnumerator()
```

### Returns

| Type                                                                                               | Description |
| -------------------------------------------------------------------------------------------------- | ----------- |
| [DrawDataEnumerator](/engine/6000.6/script-reference/unityengine/uielements/drawdataenumerator.md) |             |
