# 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.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public struct ChangeRootOrderEventArgs
```

## Constructors

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

## Properties

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