Documentation

Unity Engine

Download Unity

Unity Engine

DestroyGameObjectHierarchyEventArgs

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

Definition

  • Type: Constructor
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

DestroyGameObjectHierarchyEventArgs(EntityId, Scene)

Constructs a new instance.
public DestroyGameObjectHierarchyEventArgs(EntityId entityId, Scene scene)

Parameters

entityId

EntityId

scene

The Scene containing the GameObject that has been destroyed.

DestroyGameObjectHierarchyEventArgs(int, Scene)

Constructs a new instance.
Warning
Removed. DestroyGameObjectHierarchyEventArgs(int instanceId, Scene scene) is deprecated. Use DestroyGameObjectHierarchyEventArgs(EntityId entityId, Scene scene) instead.
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(EntityId, EntityId, Scene)

Constructs a new instance.
public DestroyGameObjectHierarchyEventArgs(EntityId entityId, EntityId parentEntityId, Scene scene)

Parameters

entityId

EntityId

parentEntityId

EntityId

scene

The Scene containing the GameObject that has been destroyed.

DestroyGameObjectHierarchyEventArgs(int, int, Scene)

Constructs a new instance.
Warning
Removed. DestroyGameObjectHierarchyEventArgs(int instanceId, int parentInstanceId, Scene scene) is deprecated. Use DestroyGameObjectHierarchyEventArgs(EntityId entityId, EntityId parentEntityId, Scene scene) instead.
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.