SortChildren
Sorts the child nodes of a hierarchy node by their sort index.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyCoreModule
SortChildren(HierarchyNode)
Sorts the child nodes of a hierarchy node by their sort index.
public bool SortChildren(in HierarchyNode node)
Parameters
The hierarchy node with child nodes to sort by their index.
Returns
Type | Description |
|---|---|
| bool | |
SortChildren(HierarchyNode, bool)
Sorts the child nodes of a hierarchy node by their sort index.
public bool SortChildren(in HierarchyNode node, bool recurse)
Parameters
The hierarchy node with child nodes to sort by their index.
Whether to sort the child nodes recursively.
Returns
Type | Description |
|---|---|
| bool | |