# GetAddedComponents(GameObject)

> Retrieves a list of AddedComponent objects which contain information about added component overrides on the Prefab instance.

## Definition

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

```csharp
public static List<AddedComponent> GetAddedComponents(GameObject prefabInstance)
```

### Parameters

**** (\[GameObject]\(/engine/6000.7/script-reference/unityengine/gameobject)): The Prefab instance to get information about.

### Returns

| Type                                                                                              | Description                                              |
| ------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| [List\<AddedComponent>](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1) | List of objects with information about added components. |
