# GetSubhierarchyEnumerator()

> Returns an enumerator that iterates over this transform handle and all of its descendants in its hierarchy.

## Definition

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

```csharp
public TransformHandle.SubhierarchyEnumerator GetSubhierarchyEnumerator()
```

### Returns

| Type                                                                                                            | Description                                                                                  |
| --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| [SubhierarchyEnumerator](/engine/6000.7/script-reference/unityengine/transformhandle/subhierarchyenumerator.md) | An enumerator that iterates over this `TransformHandle` instance and all of its descendants. |
