# DestroyGameObjectHierarchyEventArgs

> Constructs a new instance.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEditor](/engine/6000.3/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

## DestroyGameObjectHierarchyEventArgs(int, Scene)

Constructs a new instance.

```csharp
public DestroyGameObjectHierarchyEventArgs(int instanceId, Scene scene)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The instance ID of the [GameObject](/engine/6000.3/script-reference/unityengine/gameobject.md) that has been destroyed.**** (\[Scene]\(/engine/6000.3/script-reference/unityengine/scenemanagement/scene)): The [Scene](/engine/6000.3/script-reference/unityeditor/searchservice/scene.md) containing the [GameObject](/engine/6000.3/script-reference/unityengine/gameobject.md) that has been destroyed.

## DestroyGameObjectHierarchyEventArgs(int, int, Scene)

Constructs a new instance.

```csharp
public DestroyGameObjectHierarchyEventArgs(int instanceId, int parentInstanceId, Scene scene)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The instance ID of the [GameObject](/engine/6000.3/script-reference/unityengine/gameobject.md) that has been destroyed.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The instance ID for the parent [GameObject](/engine/6000.3/script-reference/unityengine/gameobject.md) of the [GameObject](/engine/6000.3/script-reference/unityengine/gameobject.md) that has been destroyed.**** (\[Scene]\(/engine/6000.3/script-reference/unityengine/scenemanagement/scene)): The [Scene](/engine/6000.3/script-reference/unityeditor/searchservice/scene.md) containing the [GameObject](/engine/6000.3/script-reference/unityengine/gameobject.md) that has been destroyed.
