Documentation

Unity Engine

Unity Engine

GetEntityId(Hierarchy, in HierarchyNode)

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