Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetSortIndex(in HierarchyNode, int)

Sets the sorting index for a hierarchy node.
Read time 1 minuteLast updated 10 days ago

Definition

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

SetSortIndex(HierarchyNode, int)

public bool SetSortIndex(in HierarchyNode node, int sortIndex)

Parameters

The hierarchy node to set a sorting index for.

sortIndex

The sorting index.

Returns

Type

Description

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