This version of Unity is unsupported.

Undo.SetSiblingIndex

Declaration

public static void SetSiblingIndex(Transform transform, int siblingIndex, string name);

Parameters

transform Transform that will have its sibling index changed.
siblingIndex New sibling index.
name Undo operation name.

Description

Sets the sibling index of transform and records an undo operation.