# SetRoot(in HierarchyNode)

> Sets the root of the hierarchy view model.

## Definition

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

## SetRoot(HierarchyNode)

```csharp
public void SetRoot(in HierarchyNode node)
```

### Parameters

**** (\[HierarchyNode]\(/engine/6000.7/script-reference/unity/hierarchy/hierarchynode)): The hierarchy node to use as the visual root of the view model.

### Remarks

This is purely visual and does not affect the underlying hierarchy data.
