# GetEnumerator()

> Returns an enumerator for all variables in this group.

## Definition

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

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

### Returns

| Type                                                                                 | Description                                                           |
| ------------------------------------------------------------------------------------ | --------------------------------------------------------------------- |
| [IEnumerator](https://learn.microsoft.com/dotnet/api/system.collections.ienumerator) | The enumerator that can be used to iterate through all the variables. |
