Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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 12 days ago

Definition

  • Type: Struct
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public struct DestroyGameObjectHierarchyEventArgs

Constructors

Properties

Property

Description

entityIdThe EntityId of the GameObject that has been destroyed.
parentEntityIdThe EntityId for the parent GameObject of the GameObject that has been destroyed.
sceneThe scene containing the GameObject that has been destroyed.