GetChildren
Gets the child nodes of a hierarchy node.
Read time 1 minuteLast updated a month ago
Definition
- Type: Method
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyCoreModule
GetChildren(HierarchyNode)
Gets the child nodes of a hierarchy node.
public HierarchyNode[] GetChildren(in HierarchyNode node)
Parameters
The hierarchy node.
Returns
Type | Description |
|---|---|
| HierarchyNode[] | An array of hierarchy nodes. |
GetChildren(HierarchyNode, Span<HierarchyNode>)
Gets the child nodes of a hierarchy node.
public int GetChildren(in HierarchyNode node, Span<HierarchyNode> outChildren)
Parameters
The hierarchy node.
The span of nodes to fill with child nodes.
Returns
Type | Description |
|---|---|
| int | The number of hierarchy node written in the span. |