ドキュメント

Unity Engine

Unity Engine

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
true
if the command was appended to the list,
false
otherwise.

SortChildren(HierarchyNode, bool)

Sorts the child nodes of a hierarchy node by their sort index.
注意
Removed. SortChildren(node, recurse) with a bool parameter is obsolete, please use SortChildren(node) or SortChildrenRecursive(node) instead.
public bool SortChildren(in HierarchyNode node, bool recurse)

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.