# ChangeRootOrderEventArgs

> A change of this type indicates that a GameObject placed at the scene root has been reordered. This happens when Undo.SetSiblingIndex is called or when reordering a root GameObject in the hierarchy under the same parent.

## Definition

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

```csharp
public struct ChangeRootOrderEventArgs
```

## Constructors

| Constructor                                                                                                                                              | Description                |
| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| [ChangeRootOrderEventArgs(System.Int32,UnityEngine.SceneManagement.Scene)](/engine/6000.3/script-reference/unityeditor/changerootordereventargs/ctor.md) | Constructs a new instance. |

## Properties

| Property                                                                                         | Description                                                                                                                                                                                                                                   |
| ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [instanceId](/engine/6000.3/script-reference/unityeditor/changerootordereventargs/instanceid.md) | The instance ID of the [GameObject](/engine/6000.3/script-reference/unityengine/gameobject.md) being reordered. Note that this is not the instance ID of the [Transform](/engine/6000.3/script-reference/unityengine/transform.md) component. |
| [scene](/engine/6000.3/script-reference/unityeditor/changerootordereventargs/scene.md)           | The [Scene](/engine/6000.3/script-reference/unityeditor/searchservice/scene.md) containing the [GameObject](/engine/6000.3/script-reference/unityengine/gameobject.md) whose root order index was changed.                                    |
