Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

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

Definition

  • Type: Method
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyCoreModule
public virtual int GetEntityIdsFromNodes(ReadOnlySpan<HierarchyNode> nodes, Span<EntityId> outEntityIds)

Parameters

The HierarchyNode values to look up.

outEntityIds

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

Returns

Type

Description

intThe number of slots in
outEntityIds
still set to EntityId.None after this handler runs. A return value of 0 means all nodes were resolved; callers may skip subsequent handlers.