# SetSiblingIndex(Transform, int, string)

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

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

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

### Parameters

**** (\[Transform]\(/engine/6000.0/script-reference/unityengine/transform)): Transform that will have its sibling index changed.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): New sibling index.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Undo operation name.
