Hierarchy.GetChildren

Declaration

public HierarchyNode[] GetChildren(ref Unity.Hierarchy.HierarchyNode node);

Parameters

node The hierarchy node.

Returns

HierarchyNode[] An array of hierarchy nodes.

Description

Gets the child nodes of a hierarchy node.


Declaration

public int GetChildren(ref Unity.Hierarchy.HierarchyNode node, Span<HierarchyNode> outChildren);

Parameters

node The hierarchy node.
outChildren The span of nodes to fill with child nodes.

Returns

int The number of hierarchy node written in the span.

Description

Gets the child nodes of a hierarchy node.


Did you find this page useful? Please give it a rating: