Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DestroyGameObjectHierarchyEventArgs

Constructs a new instance.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Constructor
  • Namespace: UnityEditor
  • Assembly: UnityEditor

DestroyGameObjectHierarchyEventArgs(int, Scene)

Constructs a new instance.
public DestroyGameObjectHierarchyEventArgs(int instanceId, Scene scene)

Parameters

instanceId

The instance ID of the GameObject that has been destroyed.

scene

The Scene containing the GameObject that has been destroyed.

DestroyGameObjectHierarchyEventArgs(int, int, Scene)

Constructs a new instance.
public DestroyGameObjectHierarchyEventArgs(int instanceId, int parentInstanceId, Scene scene)

Parameters

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.