Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetNodesFromEntityIds(ReadOnlySpan<EntityId>, Span<HierarchyNode>)

Gets the HierarchyNode corresponding to each EntityId in entityIds. Slots already set to a non-null value must be skipped.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Method
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyCoreModule
public virtual int GetNodesFromEntityIds(ReadOnlySpan<EntityId> entityIds, Span<HierarchyNode> outNodes)

Parameters

The EntityId values to look up.

Output buffer to fill; must be the same length as
entityIds
.

Returns

Type

Description

intThe number of slots in
outNodes
still set to HierarchyNode.Null after this handler runs. A return value of 0 means all entity ids were resolved; callers may skip subsequent handlers.