Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetEntityId(Hierarchy, in HierarchyNode)

Get the entity id corresponding to the given hierarchy node.
Read time 1 minuteLast updated 14 days ago

Definition

  • Type: Method
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyModule

GetEntityId(Hierarchy, HierarchyNode)

public static EntityId GetEntityId(this Hierarchy hierarchy, in HierarchyNode node)

Parameters

hierarchy

The hierarchy.

The hierarchy node.

Returns

Type

Description

EntityId

Remarks

This method will loop through all IHierarchyEntityIdConverter handlers and return the first valid entity id. It is more efficient to call GetEntityIds when multiple nodes need to be converted.