Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RevertAddedComponent(Component, InteractionMode)

Removes this added component on a Prefab instance.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void RevertAddedComponent(Component component, InteractionMode action)

Parameters

component

The added component on the Prefab instance to revert.

The interaction mode for this action.

Remarks

After the revert action, the component no longer exists.