# componentWasAdded

> This is invoked every time a new Component or MonoBehaviour is added to a GameObject using the ObjectFactory.

## Definition

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

```csharp
public static event Action<Component> componentWasAdded
```
