# ChangeGameObjectOrComponentPropertiesEventArgs

> A change of this type indicates that a property of a GameObject or Component has changed. This happens for example when Undo.RecordObject is used with an instance of a Component.

## Definition

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

```csharp
public struct ChangeGameObjectOrComponentPropertiesEventArgs
```

## Constructors

| Constructor                                                                                                                                                                                                  | Description                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------- |
| [ChangeGameObjectOrComponentPropertiesEventArgs(UnityEngine.EntityId,UnityEngine.SceneManagement.Scene)](/engine/6000.6/script-reference/unityeditor/changegameobjectorcomponentpropertieseventargs/ctor.md) | Constructs a new instance. |

## Properties

| Property                                                                                                           | Description                                                                                                                                                                                                                                                                                                                                                                                                      |
| ------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [entityId](/engine/6000.6/script-reference/unityeditor/changegameobjectorcomponentpropertieseventargs/entityid.md) | The EntityId 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/unityeditor/changegameobjectorcomponentpropertieseventargs/scene.md)       | 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. |
