RevertRemovedComponent(GameObject, Component, InteractionMode)
Adds this removed component back on the Prefab instance.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static void RevertRemovedComponent(GameObject instanceGameObject, Component assetComponent, InteractionMode action)
Parameters
The GameObject on the Prefab instance which the component has been removed from.
The removed component on the Prefab instance to revert.
The interaction mode for this action.
Remarks
After the revert action, the component exists on the Prefab instance again.