This version of Unity is unsupported.

DestroyGameObjectHierarchyEventArgs

struct in UnityEditor

Description

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.

Properties

instanceIdThe instance ID of the GameObject that has been destroyed.
sceneThe scene containing the GameObject that has been destroyed.

Constructors

DestroyGameObjectHierarchyEventArgsConstructs a new instance.