RevertRemovedComponent(GameObject, Component, InteractionMode)
Adds this removed component back on the Prefab instance.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
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.