PrefabUtility.RevertAddedComponent

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

Parameters

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

Description

Removes this added component on a Prefab instance.

After the revert action, the component no longer exists.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答