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

Definition

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

Constructors

Properties

Property

Description

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