# GetEnumerator()

> Returns an enumerator that iterates over the TransformHandle instance and all of its descendants.

## Definition

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

```csharp
public IEnumerator<TransformHandle> GetEnumerator()
```

### Returns

| Type                                                                                                             | Description                                                                                                                           |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| [IEnumerator\<TransformHandle>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1) | This [TransformHandle.SubhierarchyEnumerator](/engine/6000.6/script-reference/unityengine/transformhandle/subhierarchyenumerator.md). |
