# ChangeGameObjectOrComponentPropertiesEventArgs

> Constructs a new instance.

## Definition

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

## ChangeGameObjectOrComponentPropertiesEventArgs(EntityId, Scene)

Constructs a new instance.

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

### Parameters

**** (\[EntityId]\(/engine/6000.6/script-reference/unityengine/entityid)): **** (\[Scene]\(/engine/6000.6/script-reference/unityengine/scenemanagement/scene)): The [Scene](/engine/6000.6/script-reference/unityeditor/searchservice/scene.md) that contains the [GameObject](/engine/6000.6/script-reference/unityengine/gameobject.md) associated with the change. If a [Component](/engine/6000.6/script-reference/unityengine/component.md) is changed, this is the [GameObject](/engine/6000.6/script-reference/unityengine/gameobject.md) to which the component belongs.

## ChangeGameObjectOrComponentPropertiesEventArgs(int, Scene)

Constructs a new instance.

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

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

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The instance ID of the modified [GameObject](/engine/6000.6/script-reference/unityengine/gameobject.md) or [Component](/engine/6000.6/script-reference/unityengine/component.md).**** (\[Scene]\(/engine/6000.6/script-reference/unityengine/scenemanagement/scene)): The [Scene](/engine/6000.6/script-reference/unityeditor/searchservice/scene.md) that contains the [GameObject](/engine/6000.6/script-reference/unityengine/gameobject.md) associated with the change. If a [Component](/engine/6000.6/script-reference/unityengine/component.md) is changed, this is the [GameObject](/engine/6000.6/script-reference/unityengine/gameobject.md) to which the component belongs.
