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.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Struct
- Namespace: UnityEditor
- Assembly: UnityEditor
public struct ChangeRootOrderEventArgs
Constructors
Constructor | Description |
|---|---|
| ChangeRootOrderEventArgs(System.Int32,UnityEngine.SceneManagement.Scene) | Constructs a new instance. |
Properties
Property | Description |
|---|---|
| instanceId | The instance ID of the GameObject being reordered. Note that this is not the instance ID of the Transform component. |
| scene | The Scene containing the GameObject whose root order index was changed. |