# RevertRemovedComponent(GameObject, Component, InteractionMode)

> Adds this removed component back on the Prefab instance.

## Definition

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

```csharp
public static void RevertRemovedComponent(GameObject instanceGameObject, Component assetComponent, InteractionMode action)
```

### Parameters

**** (\[GameObject]\(/engine/6000.7/script-reference/unityengine/gameobject)): The GameObject on the Prefab instance which the component has been removed from.**** (\[Component]\(/engine/6000.7/script-reference/unityengine/component)): The removed component on the Prefab instance to revert.**** (\[InteractionMode]\(/engine/6000.7/script-reference/unityeditor/interactionmode)): The interaction mode for this action.

### Remarks

After the revert action, the component exists on the Prefab instance again.
