This version of Unity is unsupported.

PrefabUtility.RevertAddedComponent

Declaration

public static void RevertAddedComponent(Component component, InteractionMode action);

Parameters

component The added component on the Prefab instance to revert.
action The interaction mode for this action.

Description

Removes this added component on a Prefab instance.

After the revert action, the component no longer exists.