# CreateGameObjectHierarchyEventArgs

> A change of this type indicates that a GameObject has been created, possibly with additional objects below it in the hierarchy. This happens for example when Undo.RegisterCreatedObjectUndo is used with a GameObject.

## Definition

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

```csharp
public struct CreateGameObjectHierarchyEventArgs
```

## Constructors

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

## Properties

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