# 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.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```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(UnityEngine.EntityId,UnityEngine.SceneManagement.Scene)](/engine/6000.5/script-reference/unityeditor/changegameobjectstructureeventargs/ctor.md) | Constructs a new instance. |

## Properties

| Property                                                                                               | Description                                                                                                                                                                                   |
| ------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [entityId](/engine/6000.5/script-reference/unityeditor/changegameobjectstructureeventargs/entityid.md) | The EntityId of the [GameObject](/engine/6000.5/script-reference/unityengine/gameobject.md) that has been changed.                                                                            |
| [scene](/engine/6000.5/script-reference/unityeditor/changegameobjectstructureeventargs/scene.md)       | 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. |
