Hierarchy.SetSortIndex

Declaration

public void SetSortIndex(ref Unity.Hierarchy.HierarchyNode node, int sortIndex);

Parameters

node The hierarchy node.
sortIndex The sort index.

Description

Sets the sort index of a hierarchy node.

After setting sort indexes, you must call SortChildren on the parent node to sort the child nodes.


Did you find this page useful? Please give it a rating: