文档

Unity Engine

Unity Engine

SortChildren(in HierarchyNode, bool)

Sorts the child nodes of a hierarchy node by their sort index.
阅读时间1 分钟最后更新于 1 天前

Definition

SortChildren(HierarchyNode, bool)

public bool SortChildren(in HierarchyNode node, bool recurse = false)

Parameters

The hierarchy node with child nodes to sort by their index.

recurse

Whether to sort the child nodes recursively.

Returns

Type

Description

bool
true
if the command was appended to the list,
false
otherwise.