DestroyGameObjectHierarchyEventArgs
A change of this type indicates that a GameObject and the entire hierarchy below it has been destroyed. This happens for example when Undo.DestroyObjectImmediate is used with an GameObject.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Struct
- Namespace: UnityEditor
- Assembly: UnityEditor
public struct DestroyGameObjectHierarchyEventArgs
Constructors
Constructor | Description |
|---|---|
| DestroyGameObjectHierarchyEventArgs(System.Int32,System.Int32,UnityEngine.SceneManagement.Scene) | Constructs a new instance. |
| DestroyGameObjectHierarchyEventArgs(System.Int32,UnityEngine.SceneManagement.Scene) | Constructs a new instance. |
Properties
Property | Description |
|---|---|
| instanceId | The instance ID of the GameObject that has been destroyed. |
| parentInstanceId | The instance ID for the parent GameObject of the GameObject that has been destroyed. |
| scene | The scene containing the GameObject that has been destroyed. |