Version: Unity 6.5 Beta (6000.5)
LanguageEnglish
  • C#

HierarchyExtensions.GetEntityId

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static EntityId GetEntityId(Hierarchy hierarchy, ref HierarchyNode node);

Parameters

Parameter Description
hierarchy The hierarchy.
node The hierarchy node.

Description

Get the entity id corresponding to the given hierarchy node.

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