# GetEnumerator()

> Returns an enumerator for all the global variables in the source.

## Definition

* **Type:** Method
* **Namespace:** [Unity.SmartStrings.Extensions](/engine/6000.7/script-reference/unity/smartstrings/extensions.md)
* **Assembly:** UnityEngine.SmartStringsModule

```csharp
public IEnumerator GetEnumerator()
```

### Returns

| Type                                                                                 | Description                                                  |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------ |
| [IEnumerator](https://learn.microsoft.com/dotnet/api/system.collections.ienumerator) | An enumerator over the global variable groups in the source. |
