Documentation

Unity Engine

Download Unity

Unity Engine

GetNode(Hierarchy, EntityId)

Get the hierarchy node corresponding to the given entity id.
Read time 1 minuteLast updated 2 months 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.