Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

Gets the entity ids corresponding to the given hierarchy nodes.
Read time 1 minuteLast updated 13 days ago

Definition

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

Parameters

The hierarchy nodes to look up.

outEntityIds

The span to fill with entity ids. Must have the same length as
nodes
.

Returns

Type

Description

intThe number of slots that could not be resolved by any handler.