# ChangeGameObjectStructureEventArgs

> Constructs a new instance.

## Definition

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

## ChangeGameObjectStructureEventArgs(EntityId, Scene)

Constructs a new instance.

```csharp
public ChangeGameObjectStructureEventArgs(EntityId entityId, Scene scene)
```

### Parameters

**** (\[EntityId]\(/engine/6000.5/script-reference/unityengine/entityid)): **** (\[Scene]\(/engine/6000.5/script-reference/unityengine/scenemanagement/scene)): The [Scene](/engine/6000.5/script-reference/unityeditor/searchservice/scene.md) containing the [GameObject](/engine/6000.5/script-reference/unityengine/gameobject.md) that has been changed.

## ChangeGameObjectStructureEventArgs(int, Scene)

Constructs a new instance.

> **Warning:**
>
> **Removed.** ChangeGameObjectStructureEventArgs(int instanceId, Scene scene) is deprecated. Use ChangeGameObjectStructureEventArgs(EntityId entityId, Scene scene) instead.

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

### Parameters

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