# GetNode(Hierarchy, EntityId)

> Get the hierarchy node corresponding to the given entity id.

## Definition

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

```csharp
public static HierarchyNode GetNode(this Hierarchy hierarchy, EntityId entityId)
```

### Parameters

**** (\[Hierarchy]\(/engine/6000.5/script-reference/unity/hierarchy/hierarchy)): The hierarchy.**** (\[EntityId]\(/engine/6000.5/script-reference/unityengine/entityid)): The entity id.

### Returns

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

### Remarks

This method will loop through all IHierarchyEntityIdConverter handlers and return the first valid hierarchy node. It is more efficient to call GetNodes when multiple entity ids need to be converted.
