Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

hierarchy

The hierarchy.

entityId

The entity id.

Returns

Type

Description

HierarchyNodeThe 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.