Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SortChildren(in HierarchyNode)

Sorts the child nodes of a hierarchy node by their sort index.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyCoreModule

SortChildren(HierarchyNode)

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.