RevertAddedGameObject(GameObject, InteractionMode)
Removes this added GameObject from a Prefab instance.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static void RevertAddedGameObject(GameObject gameObject, InteractionMode action)
Parameters
The added GameObject on the Prefab instance to revert.
The interaction mode for this action.
Remarks
After the revert action, the GameObject and its children no longer exist.
This method also works if the added child GameObject is a Prefab instance.