GetNode(Hierarchy, EntityId)
Get the hierarchy node corresponding to the given entity id.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyModule
public static HierarchyNode GetNode(this Hierarchy hierarchy, EntityId entityId)
Parameters
Returns
Type | Description |
|---|---|
| HierarchyNode | 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.