# ChangeGameObjectStructureEventArgs

> A change of this type indicates that the structure of a GameObject has changed. This happens when a component is added to or removed from the GameObject using Undo.AddComponent or Undo.DestroyObjectImmediate.

## Definition

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

```csharp
public struct ChangeGameObjectStructureEventArgs
```

## Remarks

Note that multiple changes to the structure (e.g. multiple components added) may be represented by a single event.

## Constructors

| Constructor                                                                                                                                                                  | Description                |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| [ChangeGameObjectStructureEventArgs(System.Int32,UnityEngine.SceneManagement.Scene)](/engine/6000.0/script-reference/unityeditor/changegameobjectstructureeventargs/ctor.md) | Constructs a new instance. |

## Properties

| Property                                                                                                   | Description                                                                                                                                                                                   |
| ---------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [instanceId](/engine/6000.0/script-reference/unityeditor/changegameobjectstructureeventargs/instanceid.md) | The instance ID of the [GameObject](/engine/6000.0/script-reference/unityengine/gameobject.md) that has been changed.                                                                         |
| [scene](/engine/6000.0/script-reference/unityeditor/changegameobjectstructureeventargs/scene.md)           | The [Scene](/engine/6000.0/script-reference/unityeditor/searchservice/scene.md) containing the [GameObject](/engine/6000.0/script-reference/unityengine/gameobject.md) that has been changed. |
