# GetRoot()

> Gets the root node of the hierarchy view model.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Hierarchy](/engine/6000.5/script-reference/unity/hierarchy.md)
* **Assembly:** UnityEngine.HierarchyCoreModule

```csharp
public HierarchyNode GetRoot()
```

### Returns

| Type                                                                              | Description       |
| --------------------------------------------------------------------------------- | ----------------- |
| [HierarchyNode](/engine/6000.5/script-reference/unity/hierarchy/hierarchynode.md) | A hierarchy node. |
